i need to use while loop, i wonder if there are any syntax changes in jQuery
in javascript
var text = "";
var i = 0;
while (i < 10) {
text += "<br>The number is " + i;
i++;
}
document.getElementById("demo").innerHTML = text;
how can i perform loop in jquery just like this?