From where this undefined is getting printed

I know this code does not make sense but I am just experimenting with Objects while I am doing the JavaScript OOP course.

It’s printing undefined because you are calling a function that doesn’t have a return value. It’s just letting you know what the function returned.

1 Like

oh got it Nice that was fast wow I am pretty tired I guess lol anyways thanks

1 Like

I’m glad I could help. Happy coding!


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