+ 1

what is output this

var cars = ["BMW", "Volvo", "Saab", "Ford"]; var i = 0; var text = ""; for (;cars[i];) { text += cars[i] + "<br>"; i++; }

23rd Sep 2016, 4:34 AM
sagir
sagir - avatar
2 ответов
+ 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
23rd Sep 2016, 1:36 PM
Mohammed Chetehouna
+ 1
yes
23rd Sep 2016, 2:44 PM
sagir
sagir - avatar