stringifybeginnerJSON.stringify({ a: 1 }, null, 2) // pretty-prints with 2-space indentPass a space argument to JSON.stringify() to produce human-readable output.
JSON.stringify('hello') returns '"hello"' β a string wrapped in double quotes.
Challenge: Stringify a string and verify the result.