What is polymorphism in Javascript?
问题 I have read some possible article I could found on the internet on polymorphism . But I think I could not quite grasp the meaning of it and its importance. Most of the articles don't say why it is important and how I can achieve polymorphic behavior in OOP (of course in JavaScript). I can not provide any code example because I haven't got the idea how to implement it, so my questions are below: What is it? Why we need it ? How it works? How can I achieve this polymorphic behavior in