How can we get output line by line in the below code...?🤔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can we get output line by line in the below code...?🤔

var p1 = new person("John", 42, "green"); var p2 = new person("Amy", 21, "red"); document.write(p1.age); document.write(p2.name);

14th Jun 2020, 9:15 AM
Dhilhiraju Vysyaraju
Dhilhiraju Vysyaraju - avatar
1 Answer
0
"<p>" + value + "</p>"
14th Jun 2020, 9:17 AM
Gordon
Gordon - avatar