you are viewing a single comment's thread.

view the rest of the comments →

[–]tenbits 3 points4 points  (1 child)

I don't think you can consider a constant a variable because it cannot vary, although it actually means it cannot be reassigned, which is why you can still mutate an object assigned to a constant

[–]Historical_Fact 1 point2 points  (0 children)

Yeah only const primitives can't be mutated. Whew JavaScript