string literal javascript console.log [object object] code example
Example: string literal javascript console.log [object object]
var obj = { name: 'John', age: 22 };
console.log(`my object is: ${JSON.stringify(obj)}`);
var obj = { name: 'John', age: 22 };
console.log(`my object is: ${JSON.stringify(obj)}`);