Created
May 21, 2015 07:12
-
-
Save fuchao2012/a6808729ee34e9c3224c 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 a=10; | |
a.fuchao=10; | |
console.log(a.fuchao+a); | |
var s='fuchao'; | |
var s.fuchao='fuchao'; | |
console.log(s.fuchao+s); | |
//result? | |
//you can not add new attr to basic types like number or string what's more, undefine+string is string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment