+ 1
what is output this
var cars = ["BMW", "Volvo", "Saab", "Ford"]; var i = 0; var text = ""; for (;cars[i];) { text += cars[i] + "<br>"; i++; }
2 Answers
+ 6
The output of this code will be nothing. Because there is no output method like document.write ().
but the value of text variable will be :
BMW
Volvo
Saab
Ford
+ 1
yes