Logical assignment operators in JavaScript combine Logical Operators and Assignment Expressions.
1 2 3 |
|
1 2 3 |
|
1 2 3 |
|
So, say you have a function updateID
it can vary in the below ways:
1 2 3 4 5 6 7 8 9 10 11 |
|
You could also use it with ??
1 2 3 4 5 6 |
|
This is on stage-4 and you should be able to use it today!
I am happy that I was able to co-champion this proposal.
7 Years ago it was just a thought!