# 📝 Objects
TIP
Don't use console.log(obj)
, use console.log(JSON.parse(JSON.stringify(obj)))
.
This way you are sure you are seeing the value of obj at the moment you log it. Otherwise, many browsers provide a live view that constantly updates as values change. This may not be what you want.
- How to pretty print Objects in console for debugging?
The JSON.stringify() method (opens new window) converts a JavaScript object or value to a JSON string,
JSON.stringify(value[, replacer[, space]])
# Object Operations
Associative Arrays
- CRUD operations
- object Destructuring
- factory functions
← nodejs Performance →