[javascript] Fix for issue 1248

https://github.com/adambard/learnxinyminutes-docs/issues/1248
This commit is contained in:
Philip Rowan 2015-10-01 18:34:11 -05:00
parent a743c831a0
commit 87d0c402fb

View File

@ -475,9 +475,6 @@ myNumber === myNumberObj; // = false
if (0){
// This code won't execute, because 0 is falsy.
}
if (Number(0)){
// This code *will* execute, because Number(0) is truthy.
}
// However, the wrapper objects and the regular builtins share a prototype, so
// you can actually add functionality to a string, for instance.