My code don't go a New Line and display once two Line. Thanks you. I want to do dialog. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

My code don't go a New Line and display once two Line. Thanks you. I want to do dialog.

New Line and display once. https://code.sololearn.com/WaIJwYH25j6Y/?ref=app

2nd Feb 2021, 7:16 AM
Malick Diagne
Malick Diagne - avatar
2 Answers
0
You have to add a <br/> tag for leaving else instead of document.write() , you can print in console by console.log(). see this -> https://code.sololearn.com/Wm97tIp54AmM/?ref=app and this too -> https://code.sololearn.com/WXO3L1fhSEHt/?ref=app
2nd Feb 2021, 7:29 AM
Abhiyantā
Abhiyantā - avatar
0
obj.say ("Good morning.<br>"); obj1.say ("Good morning.<br>"); obj1.say ("How are you?<br>"); Write like this this can be helpful to you
2nd Feb 2021, 8:44 AM
Anurag Kumar
Anurag Kumar - avatar