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 3

Building Expressions

IN THIS CHAPTER

Bullet Understanding what expressions are

Bullet Figuring out numeric expressions

Bullet Tying up string expressions

Bullet Getting the hang of comparison expressions

Bullet Learning about logical expressions

It’s not at all important to get it right the first time. It’s vitally important to get it right the last time.

—DAVID THOMAS

The JavaScript variables described in the preceding chapter can’t do all that much by themselves. They don’t become useful members of your web code community until you give them something productive to do. For example, you can assign values to them, use them to assign values to other variables, use them in calculations, and so on.

This productive side of variables in particular, and JavaScript-based web code in general, is brought to you by a JavaScript feature known as the expression. When coding in JavaScript, you use expressions constantly, so it’s vital to understand what they are and to get comfortable with the types of expressions available ...

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