11/15/24 – Intro to Variables

Summary: Today we took some notes and practiced with variables…

  1. var x; //Create a variable named x
  2. x=5;   //Assign the value 5 to the variable
  3. x=x+2  //Add two to the variable. The variable x now holds the value 7
  4. x=x+" Up" //Append (aka Concatenate) the string " Up" to the variable.
  5. console.log(x); //Will print "7 Up" to the console.

Homework Unit 4 Lesson 2 Bubbles 1-7 (due Monday), Turtle Challenge #15 (due Monday)