Skip to main content
4 of 4
No longer use a variable for " rock,\n", no "var" at the beginning, while-loop without {}
izlin
  • 1.6k
  • 1
  • 11
  • 18

Javascript - 140 132

k=1,s=", ",t=" o'clock",x="";while(k<11)x+=k+++s+k+++s+k+++t+s+k+++t+" rock,\n";alert(x+"We're gonna rock around the clock tonight.")

The fact, that 11 is made out of two 1's let me pass the rules I guess.

Explanation

The k+++s is equal to (k++)+s, so it adds k first to x, then increments k and then it adds s to x. This process will be done three times before it adds the last sentence.

izlin
  • 1.6k
  • 1
  • 11
  • 18