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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.