Chapter 4
Functions, Arrays, and Objects
In This Chapter
Passing parameters into functions
Returning values from functions
Functions and variable scope
Producing basic arrays
Retrieving data from arrays
Building a multidimensional array
Creating objects
Building object constructors
Introducing JSON notation
It doesn't take long for your code to become complex. Soon enough, you find yourself wanting to write more sophisticated programs. When things get larger, you need new kinds of organizational structures to handle the added complexity.
You can bundle several lines of code into one ...
Get HTML5 and CSS3 All-in-One For Dummies, 3rd 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.