Chapter 7A Closer Look at JavaScript Fundamentals

When you’re done with this chapter, you will

  • Know what many of those JavaScript things, like var, are

  • Be able to write code that does things only when you want it to

Before we go further, let’s take a closer look at JavaScript. Like any other programming language, JavaScript was built so that both computers and people could understand it.

JavaScript programming can be thought of as describing things and what those things do, just like English and other languages. When we built our avatar, we used JavaScript to describe its head, hands, and feet. We also described how the 3D renderer should draw the scene in our browser. To put it all together, JavaScript has keywords that both computers and ...

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.