jsbeispiel
public javascript v1 · immutable// korobeiniki!function charakterwerte(hp, maxhp, mp, maxmp, angriff, verteidigung, schnelligkeit){ 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(10, 20, 10, 20, 20, 20, 100)var spiderman = new charakterwerte(20, 30, 5, 6, 10, 80, 20)var chucknorris = new charakterwerte(10, 20, 30, 40, 50, 60, 70)