JSFiddle - React, Tailwind, and code Playground

by jfriend00

HTML

<script src="http://files.the-friend-family.com/log.js"></script>

JavaScript

f = new Function("log('Hello')");
f.myName = "sayHi";

function testFunc(func) {
    log("function name is: " + func.myName);
    func();
}

testFunc(f);