+ 1
Help me get line breaks in Javascript?
I dunno if I can do this but I have a code that helps me find the smallest amount of coins for any given number between 1-99 and I was wondering how I can get the final output to come more like this 1 quarter(s) 0 dime(s) 0 nickel(s) 1 penny(ies) rather than 1 quarter(s) 0 dime(s) 0 nickel(s) 1 penny(ies). Can I do that within Javascript itself or should this be fixed within the html?
2 odpowiedzi
+ 6
Append them with <br> tag.
0
Thank you!