How do I display the content of a JavaScript object in a string format like when we alert a variable?

The same formatted way I want to display an object.

40
40

Leave a Reply

Your email address will not be published. Required fields are marked *