Chapter 2. Foundation JavaScript

In this chapter we delve into the realm of JavaScript. We review its history and the differences with its implementation. We also look into the jQuery code library and how it can save us a lot of time. The rest of the chapter is dedicated to learning the fundamental features of JavaScript, including everything you'll need to know to create amazing games in HTML5 canvas. I';m not going to lie, this is a big chapter; but it's all explained in as much detail as possible to help make your transition into JavaScript an easy one.

An overview of JavaScript

In Chapter 1 we stumbled across JavaScript. Now, we know it's a scripting language, but what exactly is it? And, what does it do? I'll answer those questions and others ...

Get Foundation HTML5 Canvas 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.