Advertisement
Guest User

Untitled

a guest
Jan 28th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JS Bin</title>
  6. </head>
  7. <body>
  8.  
  9. <script id="jsbin-javascript">
  10. var lineOne = "As a child, you would wait";
  11. var lineTwo = "And watch from far away";
  12. var lineThree = "But you always knew that you'll be the one";
  13. var lineFour = "To work while they all play";
  14. var lineFive = "And you, you lay, awake at night and scheme";
  15. var lineSix = "Of all the things you that would change but it was just a dream";
  16.  
  17. var lineOneSwitch = lineOne.replace("child", "kid");
  18. var lineSixSwitch = lineSix.replace("dream", "game");
  19.  
  20. var song = [lineOneSwitch, lineTwo, lineThree, lineFour, lineFive, lineSixSwitch];
  21.  
  22. console.log(song);
  23. </script>
  24.  
  25.  
  26.  
  27. <script id="jsbin-source-javascript" type="text/javascript">var lineOne = "As a child, you would wait";
  28. var lineTwo = "And watch from far away";
  29. var lineThree = "But you always knew that you'll be the one";
  30. var lineFour = "To work while they all play";
  31. var lineFive = "And you, you lay, awake at night and scheme";
  32. var lineSix = "Of all the things you that would change but it was just a dream";
  33.  
  34. var lineOneSwitch = lineOne.replace("child", "kid");
  35. var lineSixSwitch = lineSix.replace("dream", "game");
  36.  
  37. var song = [lineOneSwitch, lineTwo, lineThree, lineFour, lineFive, lineSixSwitch];
  38.  
  39. console.log(song);</script></body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement