You are previewing JavaScript Quick Syntax Reference.
O'Reilly logo
JavaScript Quick Syntax Reference

Book Description

JavaScript Quick Syntax Reference is a condensed syntax reference to the JavaScript language. It presents the essentials of JavaScript in a well-organized format that can be used as a handy reference. This includes the latest ECMAScript 5, JSON (JavaScript Object Notation) and DOM (Document Object Model) specifications and implementations.

You won’t find any technical jargon, bloated samples, drawn out history lessons or witty stories in this book. What you will find is a JavaScript reference that is concise, to the point and highly accessible. The book is packed with useful information and is a must-have for any JavaScript programmer or Web developer.

In JavaScript Quick Syntax Reference, you will find a concise reference to JavaScript programming language syntax; has short, simple and focused code examples; and includes a well laid out table of contents and a comprehensive index allowing easy review.

Table of Contents

  1. Cover
  2. Title
  3. Copyright
  4. Contents at a Glance
  5. Contents
  6. About the Author
  7. About the Technical Reviewer
  8. Introduction
  9. Chapter 1: Using JavaScript
    1. Creating a Project
    2. Embedding JavaScript
    3. Displaying Text
    4. View Source
    5. Browser Compatibility
    6. Console Window
    7. Comments
    8. Code Hints
  10. Chapter 2: Variables
    1. Declaring Variables
    2. Dynamic Typing
    3. Number Type
    4. Bool Type
    5. Undefined Type
    6. Null Type
    7. Special Numeric Values
  11. Chapter 3: Operators
    1. Arithmetic Operators
    2. Assignment Operators
    3. Combined Assignment Operators
    4. Increment and Decrement Operators
    5. Comparison Operators
    6. Logical Operators
    7. Bitwise Operators
    8. Operator Precedence
  12. Chapter 4: Arrays
    1. Numeric Arrays
    2. Associative Arrays
    3. Multidimensional Arrays
    4. Array Object
  13. Chapter 5: Strings
    1. Escape Characters
    2. Strings and Numbers
    3. String Object
  14. Chapter 6: Conditionals
    1. If Statement
    2. Switch Statement
    3. Ternary Operator
  15. Chapter 7: Loops
    1. While Loop
    2. Do-While Loop
    3. For Loop
    4. For-in Loop
    5. Break and Continue
  16. Chapter 8: Functions
    1. Defining Functions
    2. Calling Functions
    3. Function Parameters
    4. Variable Parameter Lists
    5. Return Statement
    6. Argument Passing
    7. FunctionExpressions
    8. Scope and Lifetime
  17. Chapter 9: Objects
    1. Object Properties
    2. Object Methods
    3. Object Literals
    4. Constructor Functions
    5. Inheritance
    6. Type Checking
    7. Object Create
  18. Chapter 10: Document Object Model
    1. DOM Nodes
    2. Selecting Nodes
    3. Traversing DOM Tree
    4. Creating Nodes
    5. Removing Nodes
    6. Attribute Nodes
  19. Chapter 11: Events
    1. Event Handling
    2. Event Object
    3. Event Propagation
    4. DOM Events
  20. Chapter 12: Cookies
    1. Creating Cookies
    2. Encoding
    3. Expiration Date
    4. Path and Domain
  21. Chapter 13: Error Handling
    1. Try-Catch
    2. Catch Block
    3. Finally
    4. Throwing Exceptions
  22. Chapter 14: Ajax
    1. Exchanging Data
    2. Server Response
    3. Ajax Event
  23. Chapter 15: jQuery
    1. Including jQuery
    2. Using jQuery
    3. Element Selection
    4. Collection Traversal
    5. DOM Traversal
    6. Modifying Attributes
    7. Creating Elements
    8. Moving Elements
      1. Ready Method
    9. Event Handling
      1. Ajax
  24. Index