Editor Arrow Download Open
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript let in global scope</title> </head> <body> <script type="application/javascript;version=1.7"> let i = 1; console.log("start----", i); function callme() { for( i = 1; i < 5; i++ ) { console.log("looping time----",i); // i visible on here }; console.log("function end----", i); } callme(); console.log("end----", i); // i not define </script> </body> </html>
  Preview Arrow