Skip to main content

Chapter Recap:


  • The first time you define a variable, you have to define it with let
  • The next time you use that variable, you should NOT use let any more. Just directly use the variable by its name.
  • variable + 3 performs an operation that adds 3 to the variable. It does NOT modify the variable.
  • Be careful of hardcoding. Do not replace variable + 3 with a number because we want our code to work for any value given to variable.
  • The + operator adds the 2 numbers on its left and right
  • The * operator multiplies the 2 numbers on its left and right