HOUR 3:Getting Started with JavaScript Programming

What You’ll Learn in This Hour:

• Organizing scripts using functions

• What objects are and how JavaScript uses them

• How JavaScript can respond to events

• An introduction to conditional statements and loops

• How browsers execute scripts in the proper order

• Syntax rules for avoiding JavaScript errors

• Adding comments to document your JavaScript code

You’ve reached the halfway point of Part I of this book. In the first couple of hours, you’ve learned what JavaScript is, learned the variety of things JavaScript can do, and created a simple script.

In this hour, you’ll learn a few basic concepts and script components that you’ll use in just about every script you write. This ...

Get Sams Teach Yourself JavaScript in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.