JSFiddle - React, Tailwind, and code Playground
by uedatakuya
JavaScript
function Hoge() {
this.name = "hoge";
return 100;
}
var f = function(){return 10;};
Hoge.prototype = f.prototype;
var hoge1 = Hoge();
console.log(hoge1);
var hoge2 = new Hoge();
console.log(hoge2);