JSFiddle - React, Tailwind, and code Playground

by PARK KYUNGSIK

JavaScript

const flag = 0;
const a = 49;
let sIdx = flag ? 3 : 2;

const q = Math.floor(a / 10);
const r = a % 10;
console.log(sIdx, q, r)

let l = sIdx;
for(let i=sIdx; i<=a;i++) {
  if(0 == (i%9)) {
     i++;
  	console.log(i, l);
  }
}