Chapter 3

JavaScript

IN THIS CHAPTER

Bullet Understanding the JavaScript structure

Bullet Creating comments and declaring variables

Bullet Using operators

Bullet Working with branching and looping statements

Bullet Creating functions

Bullet Working with arrays

Bullet 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 ...

Get Beginning Programming All-in-One For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.