function Test() {}
const obj = {
hello: function() {
console.log('Hello');
}
}
Test.prototype = obj;
const test = new Test();
test.hello();
Code will run automatically after changes.
Code runs in an isolated environment.
Code runs in an isolated environment.