Summary
During this chapter, you’ve learned what web scripting is and what JavaScript is. You’ve also learned how to insert a script into an HTML document or refer to an external JavaScript file, what sorts of things JavaScript can do, and how JavaScript differs from other web languages. You also wrote a simple JavaScript program and tested it using a web browser. You also learned how to modify and test scripts, and what happens when a JavaScript program runs into an error.
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 continue on to learn all manner and sorts of things about web development before settling in to write interactive websites using client-side scripting.