JSFiddle - React, Tailwind, and code Playground

by simonwinkler

JavaScript

var x = 0;

function recursiveCall () {
    if ( x < 5 ) {
        x += 1;
        console.log(x);
        recursiveCall();
    } else {
        return;
    }
}
recursiveCall();