Sent on Jul 22, 2020

Polymorphism in JavaScript

For the longest time, I thought that “Polymorphing” was about converting something into sheep (thanks to Warcraft). The sheep image stuck with me and made it hard to understand exactly what Polymorphism is.

Today I want to explore what Polymorphism actually is. (Fun fact: Most articles about Polymorphism in JavaScript only 1/3 of what it actually is).

Click here to read the article!

What you’ll learn:

There are three kinds of Polymorphism:

  1. Adhoc Polymorphism
  2. Parametric Polymorphism
  3. Subtype Polymorphism (this one is what most people think of as polymorphism)

Fun Fact: The Factory Pattern actually uses Adhoc Polymorphism!

Here’s the article again.

Enjoy!

Stay awesome,
Zell