JavaScript: Why does reindexing a const string not throw an error [duplicate]

const string = "Hello World";
string[0] = "L"; // no error
console.log(string) // Hello World

Since strings are immutable, wouldn’t string[0] = "L" be equivalent to:

string = "Lello World"

Shouldn’t this throw an error because you’re trying to reassign a const? Does that line just get garage collected?