JSFiddle - React, Tailwind, and code Playground

by Klawztro

JavaScript

function nova() {
    this.b = 30;
}

nova.prototype.test = function() {

    console.log(this.b);
    if (this.b == 28) {
        return;
    } else {
        this.b--;
        this.test(this.b);
    }

            

};


var j = new nova();
j.test();