SyntaxFix
Write A Post
Hire A Developer
Questions
If you're just outputting to the console, you can use console.log('string:', obj). Notice the comma.
console.log('string:', obj)