Sams Teach Yourself JavaScript in 24 Hours

Sams Teach Yourself JavaScript in 24 Hours

By Michael Moncur

Summary

During this hour, you wrote a simple JavaScript program and tested it using a browser. You learned the tools you need to work with JavaScript—basically, an editor and a browser. You also learned how to modify and test scripts, and what happens when a JavaScript program runs into an error. Finally, you learned how to hide JavaScript from older browsers.

In the process of writing this script, you have used some of JavaScript's basic features: variables, the document.write statement, and functions for working with dates and times.

Now that you've learned a bit of JavaScript syntax, you're ready to learn more of the details. You'll get started in Hour 3, "How JavaScript Programs Work."

Share ThisShare This

Informit Network