JSFiddle - React, Tailwind, and code Playground

JavaScript

var f = function() {
    function f() {
        if (confirm('Keep going?')) {
            this.apply(this);
        }
    }
    f.apply(f);
}
    
f();