JSFiddle - React, Tailwind, and code Playground

JavaScript

var Obj = {
    init: function () {
        console.log('init');
        this.remove = true;
        
        this.func_one();
    },
    
    func_one: function () {
        console.log('func one');
        if (this.remove) {
            this.func_two;
        }
    },
    
    func_two: function () {
        console.log('func two');
    }
}

Obj.init();