Libraries

A module or group of modules intended to be used in more than one program is usually called a library. For common, well-defined problems, you can usually find libraries online, often released under some license that allows you to use them in your projects for free (make sure you check, though).

Some languages have a well-organized collection of quality libraries, either bundled with the language itself or available in a central place on the Web. JavaScript has no such thing yet, so you will just have to use a search engine to look around. And of course, there is also a lot of junk online, so treat libraries from unknown sources with caution—they might be broken, and they might even contain malicious code.

There are currently a number ...

Get Eloquent JavaScript 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.