230
Gender.js
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Reassignment isn't the same as mutation. But mutation depends on the type of value. If gender was a string like "female" it wouldn't be mutable cuz strings are immutable in JS.
Yeah this is true. My joke makes an assumption about the type not being a primitive type.