fluency with information technology info100 and cse100 katherine deibel 2012-04-30katherine deibel,...

32
JavaScript Logic Conditionals, Branches, Tests… Oh My! Fluency with Information Technology INFO100 and CSE100 Katherine Deibel 2012-04-30 Katherine Deibel, Fluency in Information Technology 1

Upload: april-wilkinson

Post on 13-Jan-2016

220 views

Category:

Documents


2 download

TRANSCRIPT

Welcome to FIT100

JavaScript LogicConditionals, Branches, Tests Oh My!Fluency with Information TechnologyINFO100 and CSE100Katherine Deibel2012-04-30Katherine Deibel, Fluency in Information Technology1JavaScript So FarPlain text instructions for dynamic pagesIn = "Bob" false"Alice" == "Alice" "Alice" == "alice" "Alice" >= "Alice" 2012-04-30Katherine Deibel, Fluency in Information Technology31truefalsetrueSummaryConditional statements allow us to execute some statements and not othersThe test is enclosed in parenthesesWe always use compound statements to group the operations of conditional statements properlyA compound statement is just a bunch of statements inside of { } DO NOT follow it with a ;2012-04-30Katherine Deibel, Fluency in Information Technology32