Skip to content

Instantly share code, notes, and snippets.

@BobGu
Created June 3, 2017 14:28
Show Gist options
  • Save BobGu/ed7bd7cbce8ecf5986c4d9c4dc4f8b0b to your computer and use it in GitHub Desktop.
Save BobGu/ed7bd7cbce8ecf5986c4d9c4dc4f8b0b to your computer and use it in GitHub Desktop.

Code Along - Alerts in CodePen

  • Math the alerts
  • alert(2+2)

They try some maths

  • Have them do modulo to and explain what it is

Comparisons

  • Always returns the values true or false
  • Have them guess if it returns true or false?
  • Explain why triple equals
  • Explain the not operator
  • Have them try it

What is a string

  • A value in JavaScript that has single or double quotes wrapped around it
  • Try using an the alert function to make a string appear

Variables

  • Like in math, we have something called variables
  • Explain how it works
    • var variableName = 'value'
  • Variable should be named after the data they reference

Combine string and variables

  • Have them try

Combine numbers and variables

  • Have them try
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment