What Makes JavaScript Different

Many things make JavaScript different from other languages, but the most important for us is that it’s meant to be run in a browser. This means it can do a lot of web work very easily. As we saw in Chapter 4, Project: Moving Avatars, JavaScript can open browser alert dialogs:

 
alert(​'Stop what you are doing and shout "Yay!"'​);

JavaScript is also really good at making changes in web pages. We won’t change web pages much in this book, although we will cover the topic when we make scoreboards in some of our games.

Get 3D Game Programming for Kids 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.