stringifybeginnerJSON.stringify({ a: 1, b: undefined }) // β '{"a":1}'JSON.stringify() omits object properties with undefined values.
JSON.stringify(value, null, 2) pretty-prints with indentation, adding newlines.
Challenge: Verify the result contains a newline character.