JSFiddle - React, Tailwind, and code Playground
by Jeff
JavaScript
var num = 35;
var single = 0;
var double = 0;
for(i = 1; i <= num; i++){
if(i-26 == 0){
single = 0;
double++;
}else{
single++;
}
}
console.log(double,single);