C H A P T E R  4

JavaScript and APIs

There's a lot to know about JavaScript and the APIs of HTML5. So much so it's not really possible to go over everything. However, there's a lot we can cover that's important to mobile development. Many of the things I talk about can be achieved by using a JavaScript framework such as jQuery, which is introduced at the end of the chapter, but first you need to know the basics of what's under the hood so you can deviate from a framework or fix problems when they come up.

The first thing to look at is the basics of JavaScript: things such as how to include and reference external JavaScript files as well as some basics for creating JavaScript objects and methods. Next I go into some of the JavaScript events ...

Get Learn HTML5 and JavaScript for iOS now with the O’Reilly learning platform.

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