Skip to main content

Overview


  • You cannot re-define a variable once it has been defined.
  • Case sensitivity means that a lower case character and its equivalent upper case character are NOT considered the same.
  • Variable names and function names are case-sensitive.
  • You cannot use a variable before declaring it.
  • A naming convention is a set of rules that you should take into consideration when defining the name of a variable and function.
  • In JavaScript, the naming convention for variables & functions is: lowerCamelCase.
  • lowerCamelCase means the first character of the first word is in lower case, then the first character of the remaining words is in upper case.
  • You cannot start a variable name with a number.