Skip to Main Content
Web Coding & Development All-in-One For Dummies, 2nd Edition
book

Web Coding & Development All-in-One For Dummies, 2nd Edition

by Paul McFedries
January 2024
Beginner content levelBeginner
848 pages
18h 2m
English
For Dummies
Content preview from Web Coding & Development All-in-One For Dummies, 2nd Edition

Chapter 8

Working with Arrays

IN THIS CHAPTER

Bullet Learning what arrays can do for you

Bullet Declaring an array variable

Bullet Populating an array with data

Bullet Trying out multidimensional arrays

Bullet Working with JavaScript’s Array object

I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.

— BILL GATES

I talk quite a bit about efficient programming in this book because I believe (okay, I know) that efficient scripts run faster and take less time to program and debug. Efficiency in programming really means eliminating unnecessary repetition, whether it’s consolidating statements into a loop that can be repeated as often as required (refer to Book 3, Chapter 4) or moving code into a function that can be called as often as you need (refer to Book 3, Chapter 5).

In this chapter, you take your coding efficiency to an even higher level by exploring one of JavaScript’s most important concepts: the array. Arrays are important not only because they’re extremely efficient ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Web Coding & Development All-in-One For Dummies

Web Coding & Development All-in-One For Dummies

Paul McFedries
Programming PHP, 4th Edition

Programming PHP, 4th Edition

Kevin Tatroe, Peter MacIntyre

Publisher Resources

ISBN: 9781394197026Purchase Link