summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2015-10-02 12:08:53 +0200
committerven <vendethiel@hotmail.fr>2015-10-02 12:08:53 +0200
commit428f403bc8e08224dbfacade6628873d562e779d (patch)
tree984cc77904f5282f017f2f361485bceda0516313
parentbcc1ce4a046d1ef001311745ab755deebdf79a9a (diff)
parent87d0c402fb596c64a443a5374335508cb6941dc4 (diff)
Merge pull request #1277 from teabaggs/master
[javascript] Fix for issue 1248
-rw-r--r--javascript.html.markdown3
1 files changed, 0 insertions, 3 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index 588ea86d..ba2e8ce4 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -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.