Week #2: Control Flow

You can use “falsey-ness” to see if a value is true or false. Type coercion is a way to get numbers in the same format.

Falsey Values
-false
-0
-""
-null
-undefined
-NaN
ex. for loop
for (let i=0; i < str. length; i+=2){
console.log (str. [i]);
ex. while loop
let count = 1
while (count < 6) {
console.log ("count is: " + count);
count ++; }

Classwork

http://clomichelle.net/webdev1/02week-control-flow/cw-02week/

Problem Set

http://clomichelle.net/webdev1/02week-control-flow/ps-02week/

Leave a comment

Your email address will not be published. Required fields are marked *

css.php