How can I display a JavaScript object?
If you want to print the object for debugging purposes, use the code: will display: Note: you must only log the object. For example, this won’t work: Note ‘: You can also use a comma in the log method, then the first line of the output will be the string and after that, the object will be rendered: