same method or variable name in a javascript class behaves differently
class Parent{ method(){ console.log("Parent"); } } class Child extends Parent{ method(){ console.log("Parent"); } } var child = new Child(); console.log(child.method); console return method in child class which is a expected behaviour. class Parent{ method = "sss" } class Child extends…