JSFiddle - React, Tailwind, and code Playground
by CheapSk8
JavaScript
/**
* Generate our possible error scores
*/
function generateErrorScores() {
const multiplier = 4
const max = 52;
const min = 12;
return [...Array(((max-min)/multiplier) + 1)].map((x, i) => x * multiplier)
}
document.write(generateErrorScores())