Skip to content

Instantly share code, notes, and snippets.

@kawaynejohnson
Created November 16, 2015 21:33
Show Gist options
  • Save kawaynejohnson/efd003102048d8d00d45 to your computer and use it in GitHub Desktop.
Save kawaynejohnson/efd003102048d8d00d45 to your computer and use it in GitHub Desktop.
Shrek
//1. Write one variable that is named "character" and is set to the string "Shrek."
var charcter="shrek"
//2. Write another variable that is named "heightInFeet" and set it to the number 6.
var heightInFeet=6
//3. Log out the values of both variables.
consle.log(character)
consle.log(heightInFeet)
//4. Change the value of the character variable to "Fiona".
var "Fiona".
//5. Change the value of the heightInFeet variable to 5.
heightInFeet=5
//6. Divide the value of the heightInFeet variable by 2.
heightInFeet=heightInFeet/2
//7. Log out the values of both variables.
consle.log(heightInFeet)
//8. Increase the heightInFeet variable by 1
//9. Log out the values of both variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment