mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 01:51:38 +00:00
[javascript] Fix for issue 1248
https://github.com/adambard/learnxinyminutes-docs/issues/1248
This commit is contained in:
parent
a743c831a0
commit
87d0c402fb
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user