Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What does const guarantee for const settings = { theme: "light" }?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/es6-features/const-binding-semantics/).
Context (verbatim from the page):
"""
What does const guarantee for const settings = { theme: "light" }?
The settings binding cannot be assigned a different value.
Every property of the object is immutable.
The object and every nested object are frozen.
The binding can be reassigned once outside its block.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in JavaScript. Where you are unsure, say so.