DEV Community

Discussion on: Typical JavaScript interview exercises (explained)

Collapse
 
l0cr13n profile image
L0cr13n

I know this was posted a while ago but here is my answer.

heroes.forEach(hero => Object.freeze(hero));