Created
May 19, 2010 01:35
-
-
Save Marak/405836 to your computer and use it in GitHub Desktop.
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
var n = 45; | |
sys.puts(typeof n); | |
sys.puts(n instanceof Number); | |
var m = Number(45); | |
sys.puts(typeof n); | |
sys.puts(n instanceof Number); | |
var o = new Number(45); | |
sys.puts(typeof n); | |
sys.puts(n instanceof Number); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this gist is broken and not for consumption of anything, notice the variables are wrong.
also for fun...