Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jstimpfle
6y ago
0 comments
Save
Share
> while evaluating it for truthiness
no, it evaluates to the left side's value after assignment
0 comments
1 comments · 1 top-level
top
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