+ 1
I feel so stupid. I can’t make a line break between the first call and the second.
function sayHello(name, age) { document.write( name + " is " + age + " years old."); } sayHello("John", 20); sayHello("James", 19);
3 Respuestas
+ 9
the string "\n" inserts a line break.
if you're using document.write() "\n" wouldn't work since the method is dom related.
use document.write("<br/>");
0
Wow Brains that worked! Thank you!