Skip to content

Instantly share code, notes, and snippets.

@beala
Created February 5, 2013 20:10
Show Gist options
  • Save beala/4717250 to your computer and use it in GitHub Desktop.
Save beala/4717250 to your computer and use it in GitHub Desktop.
What does this print?
switch(NaN){
case Infinity: print(Infinity); break;
case NaN: print(NaN); break;
default: print('default'); break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment