U
U
Umid2016-12-12 14:17:14
Node.js
Umid, 2016-12-12 14:17:14

What went wrong (node.js, mongoose, Screencasts by Ilya Kantor)?

The screenshot on the left of the video shows the code, and below the console. -- something that should have happened to me.
And on the right is my console and the code in sublime'e.
d5ff8339ace642ef8f9c0ca4ce484f4a.png
Interested in why I have [object Object] displayed, and id is not issued?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Robot Chappie, 2016-12-12
@DarCKoder

Try to write like this:
console.log(JSON.stringify(kitty, null, '\t'))

A
axeax, 2016-12-12
@axeax

well, the object should be displayed as [object Object], apparently nodejs under webstorm exposes this object as a browser

D
Dmitry Belyaev, 2016-12-13
@bingo347

https://nodejs.org/dist/latest-v6.x/docs/api/conso...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question