Hallo,
Hallo, wie kann ich eine Variable in JavaScript von einer prototype-Funktion aus beschreiben? Hier der Codde:
new start();
var start = function(){
this.test = "Hallo!";
change();
}start.prototype.change = function(){
this.test = "new Hallo";
alert(this.test);
}
>
> Danke im voraus. Bin noch ziemlicher Anfänger was JavaScript angeht. :)
<https://forum.selfhtml.org/?t=209765&m=1427832>
Prototype hat nix mit dem Scope der Funktion zu tun.
Gruß
jobo