So both objects and arrays use memory reference, so that's why they can be written as const because
they are referencing data.
So there is a difference when we're declaring variables and we're trying to update the values of those
variables, then we throw an error when we use const.
But whereas objects and arrays, we don't throw that error.
And as we've seen, we've been using const for the objects.
So they're accessed from a memory and they're referencing the value within the memory.
So that means that that's why we can use it as const as an example of an array and an object literal
where we're setting up the object and we can see all of those values.
And we also saw that we can change those values.
And const also means that it can't change, that it doesn't change.
So you can change the values but not assign the object of value, not redeclared their value.
If you try to reassign it, then you're going to throw an error with const.
And at that point you do need to use let because array can no longer equal this if you're changing.
So just keep that in mind.
And that's why we are using CONSED and there's also let if you are looking to reassign it.