Summary
This chapter has introduced the last two fundamental ideas behind all programming languages: arrays and loops. Now that you've learned about variables, if-then
statements, functions, loops, and arrays, you've learned all of the basic aspects of computer programming—so be happy! From now on, everything we learn is specific to how JavaScript works with the browser. All the tough programming nitty-gritty is behind us.
Before you leave this chapter, make sure you've learned how to:
Create a new array
Access elements in an array
Use loops to go through an array's elements
Use both
for
andwhile
loopsNest loops
Use associative arrays
Get The Book of JavaScript, 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.