JavaScript Classes Exercise: Test keeps returning "undefined"

Link to exercise:

I for the life of me cannot figure out where I’m going wrong here. An extra set of eyes will greatly help.

Hello, @jriveract203.

If you want to use the backing variables like _name, you’ll have to include a getter in your class. Currently you have no name property. You have _name.

1 Like

Ah perfect! That fixed it. And thank you for pointing that out. I learned something new because of you. I appreciate it.

1 Like

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.