PacktPublishing / Learning-JavaScript-Data-Structures-and-Algorithms-Third-Edition

Learning JavaScript Data Structures and Algorithms (Third Edition), published by Packt
MIT License
1.05k stars 428 forks source link

Clarify truthy value of non-existent property #5

Closed jabacchetta closed 4 years ago

jabacchetta commented 4 years ago

Fixes typo (age should be false). Also clarifies that the value is undefined, which is one of the value types given in the chart as being falsy.

jabacchetta commented 4 years ago

Also note that, the true/false comments could probably be changed to truthy/falsy to reflect the console values. Especially since testTruthy's return value is undefined. I could potentially see new developers getting confused there. But since this change is a bit more subjective, I didn't include it here.