using nodejs loop example Example: for loop in node js var i; for (i = 0; i < cars.length; i++) { text += cars[i] + "<br>"; }