-
-
Save ruichuang/7f5d36e7431d269d40406e477c182be7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| unary plus + | |
| The unary plus operator precedes its operand and evaluates to its operand but attempts to convert it into a number | |
| +3 // 3 | |
| +'3' // 3 | |
| +true // 1 | |
| +false // 0 | |
| +null // 0 | |
| +function(val){ return val } // NaN | |
| this | |
| 3 way to call a func in ES5 | |
| func(p1, p2) | |
| obj |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment