Hi guys I can't get this problem and I believe the syntax is correct but I keep getting this error when I enter list option.
script.js:5 Uncaught ReferenceError: Cannot access 'input' before initialization at script.js:5:5
let input = prompt("What would you like to do ?!!!!!")
const todos = []
while (input.toLowerCase() !== "quit" && input.toLowerCase() !== "q") {
if (input === 'list') {
console.log('++++++++++')
}
let input = prompt("What would you like to do ?!!!!!");
}
console.log("OK!! Quit the app")