Python has mutable and immutable data types like set (mutable) and list (immutable).
Both set and list are mutable in Python afaik. Tuples aren't.
That is not quite true. Conceptually, immutability exists in js as it does in most languages I believe.
Some methods are mutative while others aren't (push vs concat for instance).
You can also use Object.freeze to prevent an object from being mutated.
Thank you for your comment and correcting me!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.