JSFiddle - React, Tailwind, and code Playground
CSS
body:before{content:"0 1 2 3 4 5 6 7 8 9 10";}<?php echo implode(" ",range(1,10)); die;?>
var textToPrint = '';
for (var i = 1; i < 11; i++) {
textToPrint += i;
if (i != 10)
textToPrint += " ";
}
console.log(textToPrint);