November 2019
Beginner
560 pages
13h 36m
English
• Using the HTML Script Tags
• Creating Your First Script
• Using External JavaScript Files
• Using JavaScript Comments
Now that you have been introduced to JavaScript, you’re ready to start coding. This chapter introduces front-end (browser-based) JavaScript, while Chapter 3 will introduce how JavaScript can be used with Node.js.
Since front-end JavaScript code is included in HTML documents, you need to know how to tell Web browsers to run your scripts. The most common way to set off a script is to use the HTML <script> and </script> tags in your document. You can place your script tags in either the head or the body section of an HTML document.
This chapter first shows ...