Comment

Comment by camsjams

You can't reassign constants in JS, it throws an error: Uncaught TypeError: Assignment to constant variable.

But yes you can modify objects and arrays of a constant, which is not great.

parent camsjams 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton