What Is JavaScript?

If you talk to a stuffy academic type, you might hear him describe JavaScript as a dynamically typed, prototype-based language with first-class functions. If you are scratching your head about what that means, don't worry, you're not the only one. A more pedestrian explanation of what JavaScript is would be that it is a language designed to allow developers of web applications to add dynamic, and interactive, elements to web pages. Although this does gloss over quite a large swath of the capabilities of JavaScript, it does describe the role the language plays.

One of the really nice features of JavaScript is that it allows developers to choose a style of programming that makes sense to them. Because of the way JavaScript is ...

Get Beginning Facebook Game Apps Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.