Created
November 21, 2012 18:56
-
-
Save qmx/4126876 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
dynjs console. | |
Type exit and press ENTER to leave. | |
dynjs> [] + [] | |
dynjs> [] + {} | |
[object Object] | |
dynjs> {} + {} | |
NaN | |
dynjs> Array(16).join("wat" - 1) + " Batman!" | |
NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman! | |
dynjs> |
Ow looks like Batman is hot! @lagergren when Batman will get out of the cave? I'm eager to read the sources :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dagon:nashorn marcus$ ./bin/nashorn
nashorn> [] + []
nashorn> [] + {}
[object Object]
nashorn> {} + {}
NaN
nashorn> Array(16).join("wat" - 1) + " Batman!"
NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!
nashorn>