Thursday, January 16, 2014

Blog 34

Blog 34
Which statement correctly uses the newline character to show the numbers 1 and 2 on separate lines?


alert(1 \n2)

alert(1\n2)

alert(1+\n+2)

alert('1\n2')

5 comments: