Answers for "\$ js"

0

javascript

// create 
TestClass.prototype.hello = function () { return 'world'; };

var tc = new TestClass('test');
console.log(tc.hello())
// world
Posted by: Guest on June-04-2021

Browse Popular Code Answers by Language