JSFiddle - React, Tailwind, and code Playground

JavaScript

(function(){
const sin = Math.sin;
const fun = new Function('x', 'return sin(x)');
alert(fun(Math.PI / 2));
})();