6. Variables, Functions, and Loops

This is one of the more important chapters in the book because you learn some of the core features in JavaScript. We expand on the variables that were mentioned in the previous chapter, then move on to creating functions, and last, we go over how to loop through data to autoexecute the same code block over and over. Using variables, functions, and loops are often the only thing a person knows how to do in JavaScript, and they usually get along just fine. You’re already past that part and on your way to becoming an elite JavaScript developer, so no worries there. You’ll be coding while all the others are looking up how to do something.

Now that you have a solid base in how to work with a lot of the common things ...

Get Learning JavaScript: A Hands-On Guide to the Fundamentals of Modern 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.