Skip to content

Instantly share code, notes, and snippets.

@davidsonfellipe
Created October 20, 2012 14:04
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 davidsonfellipe/3923370 to your computer and use it in GitHub Desktop.
Save davidsonfellipe/3923370 to your computer and use it in GitHub Desktop.
Comma Operator
(A && B)
//Always evaluate A
//If A is true, evaluate B
(A || B)
//Always evaluate A
//If A is false, evaluate B
(A, B)
//Always evaluate A
//Always evaluate B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment