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
2 Respostas
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
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