+ 2

Why I getting object object error

I'm learning to create objects with class. When I am doing console.log it is showing object object instead of object value https://code.sololearn.com/WK14BRiRR1ud/?ref=app

3rd Nov 2020, 10:24 PM
Mohammed Salman
2 odpowiedzi
3rd Nov 2020, 10:47 PM
Abhay
Abhay - avatar
+ 3
Maybe this is what you mean console.log(user1.name);
3rd Nov 2020, 11:34 PM
Benjamin Jürgens
Benjamin Jürgens - avatar