Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI
+ 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

javascriptclassesobjectses6
3rd Nov 2020, 10:24 PM
Mohammed Salman
2 Antwoorden
+ 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
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

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
2 Votes
Why can’t I use double “ in python?
0 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Coding for Cybersecurity
0 Votes
Pointers in c#
0 Votes
2 cases not correct what's the problem
1 Votes
You’re free to give me your advice! 🚨
0 Votes
Salut tout le monde
1 Votes
How can i isntall modules
0 Votes