Which of the following is NOT a type of polymorphism supported by JavaScript?

  • Compile-time polymorphism
  • Runtime polymorphism
  • Ad-hoc polymorphism
  • Parametric polymorphism
JavaScript supports runtime polymorphism and ad-hoc polymorphism (also known as function overloading), allowing different behavior for functions with the same name but different parameters. Parametric polymorphism is associated with generics and is not a form of polymorphism in JavaScript.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *