I was trying to keep it basic so as not to confuse, because speaking in a newcomer terms, saying "You can't change WHAT type of value const has, if you have an array or object, you can change what's IN the type of value that it has" can be a little mind blowing until you're more comfortable, hah!
For further actions, you may consider blocking this person and/or reporting abuse
To add on to the great explanation by @coderjoe82 , you need to be mindful of the case where you assign an object as a
const
, sayYou can reassign the name property in this object with no problems.
But if you reassign a different instance then it will throw an error
Yes to this!
I was trying to keep it basic so as not to confuse, because speaking in a newcomer terms, saying "You can't change WHAT type of value const has, if you have an array or object, you can change what's IN the type of value that it has" can be a little mind blowing until you're more comfortable, hah!