Introduction to JavaScript - How Do let and const Work Differently When It Comes to Variable Declaration, Assignment, and Reassignment?

Tell us what’s happening:

I think this should be fixed :
I found this in freecodecamp Trying to reassign a value to a const variable will throw an error in your JavaScript console, as const variables are immutable once they are assigned. but this is not true when you assign object to const variables you can mutate it the same with array so only primitive values assignments are immutable for the rest you have to use as const right ?
ChatGPT said:

Nice catch :ok_hand: You’re absolutely right to question that wording — it’s a v

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Introduction to JavaScript - How Do let and const Work Differently When It Comes to Variable Declaration, Assignment, and Reassignment?
https://www.freecodecamp.org/learn/full-stack-developer/lecture-introduction-to-javascript/how-do-let-and-const-work

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.