Skip to content
Latest: Publish JavaScript Packages to NPM Like a Pro!

Why should you avoid using the return keyword in your class's constructor method?

Home>Classes in JavaScript Explained>Why should you avoid using the return keyword in your class's constructor method?

Why should you avoid using the return keyword in your class's constructor method?

This code shows why avoiding the return keyword in your class's constructor method is best.

See it on StackBlitz