JSFiddle - React, Tailwind, and code Playground
HTML
<!--
Addy Osmani's Contest:
Win Tickets To The Online JavaScript Summit - Best Song Wins
https://plus.google.com/u/0/115133653231679625609/posts/441MvgHZRmk
-->
JavaScript
// Spy - Oppan Gangnam Style
var chorus = 'Oppan Gangnam Style';
String.prototype.repeat = function(num) {
return new Array(num + 1).join(this);
}
console.log(chorus);
console.log(chorus.split(' ').splice(1, 3).join(' '));
console.log((chorus.slice(0, 2) + ' ').repeat(4) + chorus);
console.log(chorus.split(' ').splice(1, 3).join(' '));
console.log((chorus.slice(0, 2) + ' ').repeat(4) + chorus);