rendered paste body// korobeiniki!function charakterwerte(name, hp, maxhp, mp, maxmp, angriff, verteidigung, schnelligkeit){ this.name = name; this.hp = hp; this.maxhp = maxhp; this.mp = mp; this.maxmp = maxmp; this.angriff = angriff; this.verteidigung = verteidigung; this.schnelligkeit = schnelligkeit;}var superman = new charakterwerte("Superman", 10, 20, 10, 20, 20, 20, 100)var spiderman = new charakterwerte("Spiderman", 10, 30, 5, 6, 10, 80, 20)var chucknorris = new charakterwerte("Chuck Norris", 10, 20, 30, 40, 50, 60, 70)var char = spiderman;var hpdiff = char.maxhp - char.hp;// hpdiff ist jetzt 10char = spiderman;hpdiff = char.maxhp - char.hp;// hpdiff ist jetzt 20