+ 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
2 ответов
+ 3
Here is a really good article I came across ,
https://medium.com/better-programming/what-is-object-object-in-javascript-object-prototype-tostring-1db888c695a4
+ 3
Maybe this is what you mean
console.log(user1.name);