DEV Community

Discussion on: The true prototypial nature beneath "JavaScript classes"

calvintwr profile image
calvintwr Author

Btw, your code gives the error of Cannot invoke an object which is possibly 'undefined'. on obj.fullName(). Any idea how to fix that?

Also, why do you need to wrap it in #UsingThePersonClass().

Thread Thread
Sloan, the sloth mascot
Comment deleted
jwp profile image
John Peters

The wrapping was just to show how to use the Person class.