Chapter 11
More JavaScript Goodies
IN THIS CHAPTER
Expanding stuff with the spread operator
Condensing stuff with the rest parameter
Exporting code
Importing code
I'm an inveterate fox and not a hedgehog, so I always think you should try everything.
— CLIFFORD GEERTZ
There’s an old saying that “A jack of all trades is a master of none” and it means that if you spend all your time learning a little about a lot of things, you’ll never learn a lot about one thing. However, did you know that the full saying is “A jack of all trades is a master of none, but oftentimes better than a master of one”? This expanded version implies that having a broad base of skills can often be more useful than having a narrow expertise.
That expanded saying could serve as the unofficial motto for this book. Here you’re learning not everything there is to know about HTML, CSS, JavaScript, PHP, or MySQL but everything you need to know about all of those topics. You’re becoming a jack (or jill) of all these web development trades which, for all but the largest websites, makes you more useful than someone who ...
Get Web Coding & Development All-in-One For Dummies, 2nd Edition 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.