re: Typical JavaScript interview exercises (explained) VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Why would you need to freeze it? This stuff is synchronous, how would it change in the middle of your operation?
 

It's to guard against future changes. But the requirement was to "preserve immutability" and so this makes the original data set immutable going forward.

code of conduct - report abuse