Prototypes in JavaScript
Rupesh Mishra
2.1K17

I think this could be summed up into one easy rule.

Don’t mutate properties or methods in the prototype object.

Have a look at the first bit of code under “Problems with the Prototype”. There are some typos and it doesn’t really make any sense.

Scott

Like what you read? Give Scott Molinari a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.