Chapter 3
JavaScript
IN THIS CHAPTER
Understanding the JavaScript structure
Creating comments and declaring variables
Using operators
Working with branching and looping statements
Creating functions
Working with arrays
Making your user interface look good
The problem with most web pages is that they’re static, much like staring at a page from a book except displayed on a computer screen. Although nothing’s wrong with static web pages for displaying information, you may want to create interactive web pages that can respond to the user’s actions. To create interactive or dynamic web pages, computer scientists developed various programming languages dubbed scripting languages. Although you can choose several languages for creating dynamic web pages, the most popular scripting language ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access