04.11.2015 Views

javascript

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Contents<br />

Foreword<br />

Introduction<br />

xxvii<br />

xxix<br />

Chapter 1: What Is JavaScript? 1<br />

A Short History 1<br />

JavaScript Implementations 3<br />

ECMAScript 3<br />

The Document Object Model (DOM) 7<br />

The Browser Object Model (BOM) 9<br />

JavaScript Versions 10<br />

Summary 11<br />

Chapter 2: JavaScript in HTML 13<br />

The Element 13<br />

Tag Placement 15<br />

Deferred Scripts 16<br />

Changes in XHTML 17<br />

Deprecated Syntax 18<br />

Inline Code versus External Files 19<br />

Document Modes 19<br />

The Element 21<br />

Summary 22<br />

Chapter 3: Language Basics 23<br />

Syntax 23<br />

Case-sensitivity 23<br />

Identifiers 24<br />

Comments 24<br />

Statements 25<br />

Keywords and Reserved Words 25<br />

Variables 26<br />

Data Types 28<br />

The typeof Operator 28<br />

The Undefined Type 28<br />

The Null Type 30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!