1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-05 06:17:36 +02:00

Merge pull request #1277 from teabaggs/master

[javascript]  Fix for issue 1248
This commit is contained in:
ven
2015-10-02 12:08:53 +02:00

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.