Created
April 13, 2020 18:38
-
-
Save botoxparty/20ba342d3e140939aff2beb8d176e6ad to your computer and use it in GitHub Desktop.
Going bananas
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
( | |
'b' + // String "b" - "b" | |
'a' + // String "a" - "ba" | |
+'a' + // NaN - "baNaN" | |
'a' + // String "a" - "baNaNa" | |
's' | |
) // String "s" - "baNaNas" | |
.toLowerCase(); // - "bananas" | |
| |
Output: 'bananas'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment