Potential Extensions
The sky is really the limit here. Of course, you can add cool
functions to these files or even make the existing functions better.
In all honesty, though, I doubt youâll want to keep your
functions in these same source files. Maybe youâre designing a
handful of web sites, and you want to name .js
files by site name. Great. Insert the functions that you need, and
you just made a toolkit. (How about naming it
toolkit.js
?) The important thing to remember is
that you need to come up with a system that works best for you.
Donât let your .js
files manage you. Keep
it the other way around. Iâd really like to know what you come
up with.
Get JavaScript Application Cookbook 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.