Why does this code does not work?
function Apple (type) {
this.type = type;
this.color = "red";
this.getInfo = getAppleInfo;
}
If I try to call Apple
, I get the error message
Uncaught ReferenceError: Apple is not defined(…)
(anonymous function) @ VM1844:2
InjectedScript._evaluateOn @ VM1757:875
InjectedScript._evaluateAndWrap @ VM1757:808
InjectedScript.evaluate @ VM1757:664