Guest User

Untitled

a guest
Jun 25th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. const key = "key";
  12. const value = "value";
  13. const obj = {};
  14.  
  15. for(let i=0; i<100; i++) {
  16. obj[key+i] = value+i;
  17. }
  18.  
  19. console.log(JSON.stringify(obj));
  20. </script>
  21.  
  22.  
  23.  
  24. <script id="jsbin-source-javascript" type="text/javascript">const key = "key";
  25. const value = "value";
  26. const obj = {};
  27.  
  28. for(let i=0; i<100; i++) {
  29. obj[key+i] = value+i;
  30. }
  31.  
  32. console.log(JSON.stringify(obj));</script></body>
  33. </html>
Add Comment
Please, Sign In to add comment