crop_rotate
Run
<!DOCTYPE html> <html> <body> <h1>JavaScript Block Scope</h1> <script> let x = 10; { let x = 3; //x here equal 3 document.write("inside block scope " + x + "<br>"); } //x here equal 10 document.write("outside block scope " + x ); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDE+SmF2YVNjcmlwdCBCbG9jayBTY29wZTwvaDE+DQoNCjxzY3JpcHQ+DQpsZXQgeCA9IDEwOw0Kew0KICBsZXQgeCA9IDM7DQogIC8veCBoZXJlIGVxdWFsIDMNCiAgZG9jdW1lbnQud3JpdGUoImluc2lkZSBibG9jayBzY29wZSAiICsgeCArICI8YnI+Iik7DQp9DQovL3ggaGVyZSBlcXVhbCAxMA0KZG9jdW1lbnQud3JpdGUoIm91dHNpZGUgYmxvY2sgc2NvcGUgIiArIHggKTsNCjwvc2NyaXB0Pg0KDQo8L2JvZHk+DQo8L2h0bWw+