Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jstimpfle
6y ago
0 comments
Share
> while evaluating it for truthiness
no, it evaluates to the left side's value after assignment
0 comments
default
newest
oldest
fatbird
6y ago
Well, yes, that's right: the return value of an assignment expression is the left side's value, which is what makes the assignment/evaluation work.
j
/
k
navigate · click thread line to collapse