Skip to content

Instantly share code, notes, and snippets.

@olavea
Last active July 5, 2016 12:21
Show Gist options
  • Save olavea/344614b09b4d291694915809d9a75f4c to your computer and use it in GitHub Desktop.
Save olavea/344614b09b4d291694915809d9a75f4c to your computer and use it in GitHub Desktop.
Tell poeng med
+= (plus - er lik)
-= (minus - er lik)
var score = 10;
score += 7;
17
score -= 3;
14
Forklaring:
var score = 10;
Hvis du dreper et monster får du sju poeng:
score += 7;
17
Hvis du kræsjer inn i en meteor mister du tre poeng:
score -= 3;
14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment