Challenge 2 — Solution Task: Create an object task = { title: "Buy milk", done: false }. Save it to localStorage under "task1" using JSON.stringify. Read it back, parse it with JSON.parse, and log task.title and typeof task.done to confirm the boolean type survived the round trip. const task = { title: "Buy milk", done: false }; localStorage.setItem("task1", JSON.stringify(task)); const stored = localStorage.getItem("task1"); const loadedTask = JSON.parse(stored); console.log(loadedTask.title); console.log(typeof loadedTask.done); Expected output: Buy milk boolean Notes: - JSON.stringify(task) turns the whole object into the string '{"title":"Buy milk","done":false}' before it's ever handed to setItem — localStorage itself never sees the original object. - JSON.parse(stored) rebuilds a real object from that string, and critically, "false" inside the JSON text becomes the actual boolean false again, not the string "false". - Without JSON.stringify/parse, storing task directly (setItem ("task1", task)) would have saved the useless string "[object Object]" instead of the real data.