Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    "var" is an old way or declaring a variable. Modern JavaScript uses either "const" or "let". Const is a so called immutable variable, which means that you can NOT change it's value. let, on the other hand, is mutable, i.e. you can change it's value later on. You should use "const" by default since it's better to have as few variable mutations as possible.