+ 4

Please what is wrong with this code.

text += cars[0] + "<br>"; text += cars[1] + "<br>"; text += cars[2] + "<br>"; text += cars[3] + "<br>"; text += cars[4] + "<br>"; text += cars[5] + "<br>";

24th Jun 2019, 8:07 AM
chinaza
chinaza - avatar
3 odpowiedzi
+ 3
what are you wanting it to do?
24th Jun 2019, 8:38 AM
Matt Watkins
Matt Watkins - avatar
+ 1
This what you did here........ Text = text + cars[0] . this is JavaScript why. Use html <br> instead of (\n) JavaScript or are you trying to text your html code by document.write(). Pls explain what you wanna to do with the code to know how to help?
24th Jun 2019, 10:05 AM
Nwankwo Valentine
Nwankwo Valentine - avatar
+ 1
facebook name
29th Jun 2019, 6:44 AM
journial tullah
journial tullah - avatar