console printing [object Object] code example Example: console.log printing object object require('util').inspect.defaultOptions.depth = null