Skip to content

Commit 26fc93d

Browse files
authored
Merge pull request #5 from jabacchetta/truthy
Clarify truthy value of non-existent property
2 parents 2cedcaf + faa542a commit 26fc93d

File tree

1 file changed

+1
-1
lines changed
  • LearningJavaScriptDataStructuresandAlgorithmsThirdEdition_Code/examples/chapter01_02

1 file changed

+1
-1
lines changed

LearningJavaScriptDataStructuresandAlgorithmsThirdEdition_Code/examples/chapter01_02/04-TruthyFalsy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ testTruthy({}); // true (object is always true)
2424
var obj = { name: 'John' };
2525
testTruthy(obj); // true
2626
testTruthy(obj.name); // true
27-
testTruthy(obj.age); // age (property does not exist)
27+
testTruthy(obj.age); // false (property is undefined)

0 commit comments

Comments
 (0)