JSFiddle - React, Tailwind, and code Playground
by isherwood
JavaScript
var myArray = [];
function pointsArray(totalPoints) {
for (i = 0; i < totalPoints; i++) {
myArray.push('1');
}
return myArray;
}
alert(pointsArray(4));
by isherwood
var myArray = [];
function pointsArray(totalPoints) {
for (i = 0; i < totalPoints; i++) {
myArray.push('1');
}
return myArray;
}
alert(pointsArray(4));