JSFiddle - React, Tailwind, and code Playground

HTML

<script>executeTest();</script>

JavaScript

var jsCode = '<scr' + 'ipt>var executeTest = function(){ alert("This is a test."); }</scr' + 'ipt>';
$('head').append(jsCode);