var i = 0;
while(i < 100){
return \"The number is \" + i;
i++;
}
What is wrong with my return statement? Why can I return a string plus a
I'm not exactly sure what you want to do with this text, but The number is " + i + " http://jsfiddle.net/rmerzbacher/fdu7aauz/return
will take you out of the function. If you want to display this text, you could use var i = 0;
while(i < 100){
document.getElementById("demo").innerHTML += "