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 testStr = function () { | |
var a = "5"; | |
var b = "44"; | |
console.log("num str", a > b); // true, lex comparison | |
}; | |
testStr(); |
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
# Remove old sudoy node | |
# http://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x | |
# take ownership of the folders that npm/node use | |
# please don't do this if you don't know what it does! | |
sudo mkdir -p /usr/local/{share/man,bin,lib/node,include/node,/lib/node_modules} | |
sudo chown -R $USER /usr/local/{share/man,bin,lib/node,include/node,/lib/node_modules} | |
# now just install node from the website... |