Last active
June 13, 2017 10:01
-
-
Save reinislejnieks/2891262 to your computer and use it in GitHub Desktop.
JavaScript useful #js #starred
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// return left if left is not false otherwise return right | |
'reinis' || null | |
// 'reinis' | |
// returns left if left is not true otherwise return right | |
0 && null | |
// 0 | |
!0 | |
// true | |
!1 | |
// false | |
// to test if something divides with itself without reminder | |
100 % 4 | |
// 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment