Summary

This chapter just scratched the surface of the JavaScript language, but it does give you many of the tools you need to begin getting good at JavaScript. Knowing when to leverage a framework such as JQuery or MooTools, how to debug what is going on in your code, and how the language interacts with the browser are all things you need to know to start building games.

In the next chapter I go into much more detail on the canvas element. The HTML5 canvas element allows developers to create graphics directly in the browser without the need for third-party browser extensions. The JavaScript I have covered to this point is just the basics, but gives you context for what comes later as we begin to develop games for Facebook.

Get Beginning Facebook Game Apps Development 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.