+ 1
Is there anyway to print var x & var y on different lines?
var person = { name: "John", age: 31, favColor: "green", height: 183 }; var x = person.name; var y = person['age']; document.write(x); document.write(y);
1 Antwort
+ 3
Add in between the 2 lines:
document.write("<br>");