Skip to content
Advertisement

Tag: constructor

overriding prototype property or function

now log showing me true. which means swingSword that were defined in Ninja.prototype has overridden so how can i override the constructor function or property.?? i know that preference is given to constructor variable then why need to define a function or property inside prototype?? Answer The reason to define a function on the prototype is so that it is

Advertisement