JSFiddle - React, Tailwind, and code Playground

JavaScript

(function(){
const sin = Math.sin;
let fun; eval('fun = function what(x) { return sin(x) }');
alert(fun(Math.PI / 2));
})();