Programming Tips - javaScript: what's an easy way to log an object?

Date: 2018apr4 Language: javaScript Q. javaScript: what's an easy way to log an object? A.
console.log(JSON.stringify(myobject));