{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

JSLoops - ANNOUNCEMENTS No posting of code in the forum...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
ANNOUNCEMENTS No posting of code in the forum Check class announcements daily 1
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 JAVASCRIPT (IF STATEMENT) What is the difference between === and == ? Let’s compare 20 === “20” vs. 20 == “20”
Image of page 2
3 JAVASCRIPT (LOGICAL OPERATORS) Used with comparison operators to create more complex expressions Operators Logical and (&&) expr1 && expr2 Expression is true if and only if both expressions are true otherwise is false Notice you need two & You can have more than two expressions Example: LogicalOp1.html Logical or (||) expr1 || expr2 Expression is false if and only if both expressions are false otherwise is true The | character can be found on top of the Enter key in the keyboard (same key as \) You can have more than two expressions Example: LogicalOp2.html Logical Not (!) !expr Inverts the boolean value of the expression
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon