Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="description" content="Let example:1">
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width">
  7. <title>JS Bin</title>
  8. </head>
  9. <body>
  10.  
  11. <script id="jsbin-javascript">
  12. //At the top level of programs and functions, let, unlike var, does not create a property on the global object. For example:
  13.  
  14. var x ='global';
  15. let y = 'global';
  16.  
  17. console.log(this.x);
  18. console.log(this.y);
  19. </script>
  20.  
  21.  
  22.  
  23. <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:
  24.  
  25. var x ='global';
  26. let y = 'global';
  27.  
  28. console.log(this.x);
  29. console.log(this.y);</script></body>
  30. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement