JSFiddle - React, Tailwind, and code Playground
by Kerrick
JavaScript
try {
function Test() {
this.speak = function() { alert('From Test!') }
}
test = new Test
test.speak()
} catch (error) {
alert(error);
}
try {
secondtest = new SecondTest
secondtest.speak()
function SecondTest() {
this.speak = function() { alert('From SecondTest!') }
}
} catch (error) {
alert(error)
}