25
loading...
This website collects cookies to deliver better user experience
Let vs Const vs Var: We generally want to use let. If we’re not using the same, we use const. (I’ve have seen codebases which force you to use const when there is only one assignment, same goes for some of the devs out there.)
'='
operator.const a = condition ? b : c
instead of an if condition, even if both b and c branches are convoluted and giving them explicit names is awkward.25