Skip to content

Instantly share code, notes, and snippets.

@lucamug
Last active January 22, 2021 02:40
Show Gist options
  • Save lucamug/dbb238361d9dac026cf8d7ad3ed912ed to your computer and use it in GitHub Desktop.
Save lucamug/dbb238361d9dac026cf8d7ad3ed912ed to your computer and use it in GitHub Desktop.
a = 1;
a = a + 2;
a = a * 3; // Gives 9
// while, inverting the order of
// the 2nd and 3rd line:
a = 1;
a = a * 3;
a = a + 2; // Gives 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment