Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="description" content="Let scope">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- //At the top level of programs and functions, let, unlike var, does not create a property on the global object. For example:
- var x ='global';
- let y = 'global';
- console.log(this.x);
- console.log(this.y);
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">//At the top level of programs and functions, let, unlike var, does not create a property on the global object. For example:
- var x ='global';
- let y = 'global';
- console.log(this.x);
- console.log(this.y);</script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement