JSFiddle - React, Tailwind, and code Playground
by Endy0816
HTML
<!DOCTYPE html>
<body>
<script>
function myFunction() {
var text = "";
var i;
var x = 1;
var y = 0;
for(i = 1; x > 0; i++){
x = x-y;
text += " " + i + " <br>";
document.getElementById("demo").innerHTML = text;
}
}
</script>
1/0
<button onclick="myFunction()">=</button>
<p id="demo"></p>
</body>