JSFiddle - React, Tailwind, and code Playground

by popopome

HTML

<div>SAMPLE CODE</div>
<div id="output"></div>

JavaScript

var f = function() {
    console.log("THANKS");
};

var val = Function.prototype.toString.call(f);
$("#output").innerHTML(val);