I want an output like this:
1st line- " Your total purchase cost is Rs.980"
2nd line- Thank You!
my code snippet:
document.getElementById("result").innerHTML = 'Your total purchase cost is Rs' +result;
<div id = "result"> </div>
I tried adding:
document.getElementById("result").innerHTML = 'Your total purchase cost is Rs' +result <br> 'Thank You!';
and adding a new line with \n
.
Please help me understand this.