JSFiddle - React, Tailwind, and code Playground
by ocanal
HTML
<script type="text/javascript">
function MyClass() {
MyClass.prototype.fooMethod = function () {
alert("yep");
}
MyClass.prototype.fooMethod2 = function () {
MyClass.fooMethod();
}
}
var m = new MyClass();
var x = setInterval(m.fooMethod2,2000);
</script>