JSFiddle - React, Tailwind, and code Playground
JavaScript
function countBy(x, n) {
var z = [];
for (i = 1; i <= n; i++) {
z.push(x * i);
}
return z;
}
function countBy(x, n) {
var z = [];
for (i = 1; i <= n; i++) {
z.push(x * i);
}
return z;
}