, Bass wrote

I don't really agree with your characterization of JavaScript not having inheritance or polymorphism.

JavaScript has instance inheritance, but not type inheritance. The generic term "polymorphism" is usually associated with subtype polymorphism.