function Eg() { this.name = 10; return 'adarsh'; } new Eg(); // Returns {name: 10} However, if you return a object inside a constructor function, that object will be returned. function Eg() { this.name = 10; return { name: 'adarsh' }...
blog.adarshkonchady.com1 min readNo responses yet.