1(function() {
2 'use strict';
3 if (true) {
4 function ok() {
5 return 'true ok';
6 }
7 } else {
8 function ok() {
9 return 'false ok';
10 }
11 }
12 console.log(typeof ok === 'undefined'); // => true
13 console.log(ok()); // Throws "ReferenceError: ok is not defined"
14})();