Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- var lineOne = "As a child, you would wait";
- var lineTwo = "And watch from far away";
- var lineThree = "But you always knew that you'll be the one";
- var lineFour = "To work while they all play";
- var lineFive = "And you, you lay, awake at night and scheme";
- var lineSix = "Of all the things you that would change but it was just a dream";
- var lineOneSwitch = lineOne.replace("child", "kid");
- var lineSixSwitch = lineSix.replace("dream", "game");
- var song = [lineOneSwitch, lineTwo, lineThree, lineFour, lineFive, lineSixSwitch];
- console.log(song);
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">var lineOne = "As a child, you would wait";
- var lineTwo = "And watch from far away";
- var lineThree = "But you always knew that you'll be the one";
- var lineFour = "To work while they all play";
- var lineFive = "And you, you lay, awake at night and scheme";
- var lineSix = "Of all the things you that would change but it was just a dream";
- var lineOneSwitch = lineOne.replace("child", "kid");
- var lineSixSwitch = lineSix.replace("dream", "game");
- var song = [lineOneSwitch, lineTwo, lineThree, lineFour, lineFive, lineSixSwitch];
- console.log(song);</script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement