Variables

What is a variable?

Variable types

  • number
  • string
  • boolean
  • array
  • object

Dynamic typing

Constants

Variable declaration and Scopes

  • global
  • function
  • block

Exercises

  1. Create a JavaScript file.
  2. In the above file, declare a few variables and assign number, string, boolean, array, and object to them.