Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

CHAPTER 4: JavaScript Primer > Using Statements - Pg. 98

CHAPTER 4 JAVASCRIPT PRIMER </script> </head> <body> This is a simple example </body> </html> This is a trivially simple script that writes a message to the console. The console is a basic (but useful) tool that the browser provides that lets you display debugging information as your script is executed. Each browser has a different way of showing the console. For Google Chrome, you must select the "JavaScript console" item from the Tools menu. You can see how the console is displayed in Chrome in Figure 4-1; the other browsers have very similar features.