Skip to content

Instantly share code, notes, and snippets.

@jsphkhan
Created October 19, 2019 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsphkhan/7458db290865621bcd57f0301dc8ba4e to your computer and use it in GitHub Desktop.
Save jsphkhan/7458db290865621bcd57f0301dc8ba4e to your computer and use it in GitHub Desktop.
JavaScript can be weird at times
"11" + 1; // "111"
"11" - 1; //10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment