Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which statement correctly compares let and const?" on CodeWiki (https://codewiki.com/practice/mcq/javascript/fundamentals/lexical-declaration-semantics/).
Context (verbatim from the page):
"""
Which statement correctly compares let and const?
Both create block-scoped bindings, but only let permits reassignment.
const recursively freezes any object assigned to it.
let is initialized to undefined before its declaration executes.
const is function-scoped while let is block-scoped.
"""
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.