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' }...
Interested in all things Web !
As a Senior Principal Engineer at CVSHealth, I specialize in building and optimizing cvs.com to deliver a superior guest experience. Using the latest web technologies, my team and I work diligently to create a user-friendly and intuitive platform that exceeds expectations.
Markdown supported · ⌘↵ to post
No responses yet.