Why are my users being logged as [object Object] when logging my array/user instead of giving me the values [name, age]?
You code looks really clean and neat. SoloLearn console doesnt work as good as real browser console. I tried ur code in separate files in Firefox and Chrome and they can log the info as intended.
In Sololearn Playground web, you have to convert the array or object data to string, so that you can view the data in string format. Try this console.log(JSON.stringify(users, null, 2));
Coding Noob use JSON.stringify console.log(JSON.stringify(users));
Thank you! I wrote it out on my phone in sololearn since I'm not at my computer at the moment and had a feeling it was the sololearn console. I appreciate you verifying this for me.
Bob_Li I haven't learned anything backend related which is what JSON.stringify appears to be for. I just read up on it and learned some new stuff, so thank you.
Bob_Li I tried it out and I like it. Thank you, I have been studying for about 2 months now.
Example when i log newUser it returns [object Object] instead of ['Paolo', 34]. If I log newUser.name it logs 'Paolo'
it's not backend, and it's actually an often used function. Very useful to know.😊
Bob_Li how does it differ from using toString()? I'm reading about both and they seem to be the same?
help my code does not iterate
What is the problem 🤨🧐??
Generador de divicion python.