JSFiddle - React, Tailwind, and code Playground

by Siva Subramaniam

JavaScript

// Creating a function using Function constructor
var myFunction = new Function('someString','console.log(someString);');
// calling the function
myFunction('hello');