Skip to content

Instantly share code, notes, and snippets.

@biglovisa
Created May 4, 2017 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biglovisa/2fe0508a7587bfb91f2774daf30cf67a to your computer and use it in GitHub Desktop.
Save biglovisa/2fe0508a7587bfb91f2774daf30cf67a to your computer and use it in GitHub Desktop.
data types: check-ins

Data types: check-ins

Greeting

  • Create three variables - name, age, and, homeTown - and assign them values.
    • Print "My name is X and I am Y years old. I live in Z.", where X, Y, Z represents one of your three variables.

Creating a sentence

  • Assign the value tomatoes to a variable expression
    • Add "in my pants" to the end of the variable
    • Add "a lot of" to the beginning of the variable
    • What's the value of the variable expression? Desired is: "a lot of tomatoes in my pants"

Boolean

  • What's the type of false? What's the type of false?
    • create a new boolean using the new keyword. What's the default value when creating a Boolean value?

Null/Undefined

  • What's the type of null? How about undefined?
  • When you declare a variable, what's it default value?
  • What's the difference between null and undefined?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment