JSFiddle - React, Tailwind, and code Playground

JavaScript

var i=0;
while(i<10){
window["counters"+i] = "This is loop has ran " + i + " times.";
i++;
}
document.write(counters3);