JSFiddle - React, Tailwind, and code Playground
JavaScript
const value = 1000000000;
let one;
let two;
const gc = () =>{
for(let i = 0; i <= value; i++){
const two = document.createElement('div');
two.textContent = i
if(i % (value / 10 ) === 0 || i === value)
console.log(i + ' divs')
/* one.replaceWith(two) */
}
}
gc();