JSFiddle - React, Tailwind, and code Playground

JavaScript

var f = "function funk(){alert('aaaa');}";

eval("("+f+")();");