loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var letter = 'a';
var number = 1; 

function testing() { 
  var number = 2;
  console.log(number);
  console.log(letter);
  letter = 'e';
}

testing();
console.log(number);
console.log(letter);
Native Browser JavaScript