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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 JAVASCRIPT (IF STATEMENT) What is the difference between === and == ? Let’s compare 20 === “20” vs. 20 == “20”
Background 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
Background image of page 3

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

View Full DocumentRight Arrow Icon
4 CASCADED IF STATEMENT IDIOM You can combine if statements to handle different cases
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/12/2012 for the course CMSC 122 taught by Professor Staff during the Fall '08 term at Maryland.

Page1 / 8

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

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online