Commit 50f888f
authored
Update explanation of 'important' property evaluation
The original text claimed that the expression body.important || false “converts its value to a boolean,” which is misleading. The updated version clarifies that the expression returns the original truthy value if it exists or false if the property is missing or falsy. It also links to the same external resources for [truthy] and [falsy] that were introduced earlier in the course to maintain consistency and accuracy.1 parent 9d702f0 commit 50f888f
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
| 711 | + | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| |||
0 commit comments