Last active
July 11, 2019 15:16
-
-
Save valentingavela/fbcc15d664df3587868a7dc72289fae3 to your computer and use it in GitHub Desktop.
Convert string to int with bitwise OR operator
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
// Convert int to string: | |
// | OR operator | |
console.log('20' | 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment