O'Reilly logo

Simply JavaScript by Cameron Adams, Kevin Yank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A. The Core JavaScript Library

Most of the examples in this book have relied on a small library of useful methods contained in a file named core.js. This library enabled us to set aside the messy details of some of the common tasks you need to perform in most scripts, and focus on the more unique aspects of each example.

In some cases, this library’s methods were a little too complicated to explain in detail at the moment we first needed them. This appendix, therefore, contains a complete description of the Core library, and how each of its methods works.

The Object

Like most of the scripts in this book, the Core library encloses all of its functions within a JavaScript object, making them methods of that object. In the past, we have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required