Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //TODO: MAKE SURE YOU LABEL YOUR CONSOLE LOGS!!!
- //create a variable called myName that contains
- //your name in a string
- //console log myName
- //create a variable called favNumber that contains
- //your favorite number
- //console log favNumber
- //create a variable called likesDogs that contains
- // a boolean true if you like dogs and boolean false if you don't
- //console log likesDogs
- //IMPORTANT: for this section, only run your code when you reach the "RUN CODE NOW" below
- //make a variable called test1 that contains
- //myName + favNumber
- //console log test1
- //make a code comment here with your hypothesis for the following
- //what is the value in test1?
- //make a variable called test2 that contains
- //myName + favNumber + favNumber
- //console log test2
- //make a code comment here with your hypothesis for the following
- //what is the value in test2?
- //make a variable called test3 that contains
- //favNumber + favNumber + myName
- //console log test3
- //make a code comment here with your hypothesis for the following
- //what is the value in test3?
- //make a variable called test4 that contains
- //myName + favNumber * favNumber
- //console log test4
- //make a code comment here with your hypothesis for the following
- //what is the value in test4?
- //make a variable called test5 that contains
- //likesDogs + favNumber
- //console log test5
- //make a code comment here with your hypothesis for the following
- //what is the value in test5?
- //make a variable called test6 that contains
- //likesDogs + myName
- //console log test6
- //make a code comment here with your hypothesis for the following
- //what is the value in test6?
- //set variable myName equal to variable favNumber
- //make a code comment here with your hypothesis for the following
- //what is the value in myName now?
- //what is the value in favNumber now?
- //console log out myName and favNumber
- //set variable favNumber equal to variable myName
- //make a code comment here with your hypothesis for the following
- //what is the value in myName now?
- //what is the value in favNumber now?
- //console log out myName and favNumber
- //RUN CODE NOW
- //check your theories above to see if they match reality.
- //how did your theories differ? Why?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement