Is 'let' supported?
A test to see if the browsers supports the 'let' keyword, and shows that it has block level scoping.
HTML
<p>Open the Console in your browser. The value posted to the console should initially be "Foo". The second time we print to the console, <var>blockScope</var> should be out of scope, as <code>let</code> has block level scoping.</p>
JavaScript
"use strict";
function letTest() {
let x = 2;
function test2(){
console.log(x); // 2
}
test2();
}
letTest();