Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Loading…
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
Loading…
Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
JAVASCRIPT FOUNDATIONS / CHAPTER 01 / Learn / LESSON 07
Seventh class. Budgets make decisions: “is expense less than income?” Comparisons return true or false.
Strict equality: === and !== (value and type). 5 === "5" is false. Combine logic with && (and) and || (or).
Mini example:
console.log(10 === 10);
console.log(true && false);Common mistake: a single = (assignment) instead of === (comparison). Another: using & instead of &&.
Comparisons return booleans. && / || combine them.
JS CONSOLE IDLE
›