Declaring Variables

<script>
//----- GLOBAL SCOPE -----
//(Need to be declared outside of a function)
var SomeValue = 0;
var SomeOtherValue;

//----- LOCAL SCOPE -----
function MyFunction () {
  let MyVariable = 0;
  let MyVariable2;
  const MyConstant = 'abc';

//let has block scope (can be used only within {} )