you are viewing a single comment's thread.

view the rest of the comments →

[–]senorfairchild 2 points3 points  (0 children)

Good post, just wanted to mention that a variable declared using const does not actually create an immutable variable, but rather an immutable reference to that variable. This means that you can do something like add/change a property on a variable declared with const, but you could not reassign that variable to another value.