JSFiddle - React, Tailwind, and code Playground

JavaScript

function f() {
    g = eval("" + f);
    alert("Inside the call to f(), f is: " + f);
    alert("Inside call to f(), g is: " + g);
}

f();

alert("After a call to f(), f is: " + f);
alert("After a call to f(), g is: " + g);