0
Newline
This code gives the output as '3131'.How can I bring the second 31 to the next line?Will the newline function not serve the purpose here?
1 Odpowiedź
0
var person = {
name: "John", age: 31,
favColor: "green", height: 183
};
var x = person.age;
var y = person['age'];
document.write(x);
document.write(y);