JSFiddle - React, Tailwind, and code Playground

JavaScript

function Stage(){}
Stage.prototype.start = function(key) {
console.log(key);
                    setTimeout((function() {
                            this.start(key+2); //use it to make the call
                    }).bind(this),1000); 
            
    }   
var stg = new Stage();
stg.start(1);