Chapter 4

Functions, Arrays, and Objects

In This Chapter

arrow Passing parameters into functions

arrow Returning values from functions

arrow Functions and variable scope

arrow Producing basic arrays

arrow Retrieving data from arrays

arrow Building a multidimensional array

arrow Creating objects

arrow Building object constructors

arrow 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.