what is polymorphism in javascript code example
Example: polymorphism javascript
<script>
class A
{
display()
{
document.writeln("A is invoked");
}
}
class B extends A
{
}
var b=new B();
b.display();
</script>