Skip to content

Instantly share code, notes, and snippets.

@qmx
Created November 21, 2012 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qmx/4126876 to your computer and use it in GitHub Desktop.
Save qmx/4126876 to your computer and use it in GitHub Desktop.
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>
@lagergren
Copy link

dagon:nashorn marcus$ ./bin/nashorn
nashorn> [] + []

nashorn> [] + {}
[object Object]
nashorn> {} + {}
NaN
nashorn> Array(16).join("wat" - 1) + " Batman!"
NaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN Batman!
nashorn>

@abstractj
Copy link

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