DOCTYPE html html body script use strict var test1 First let test2 Sec

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<body>
<script>
"use strict";
var test1 = "First";
let test2 = "Second";
if (true) {
var test4 = "Four";
let test5 = "Five";
alert (test2);
}
alert (test1);
alert(test2);
alert (test4);
alert (test3);
</script>
</body>
</html>