The question posed to me was this :
Why does this first line "work" (compiles/runs) but the second line gives an error ⁉️
[[]][0]++;
[]++;
Not that I expect you'll ever intentionally write (or read, hopefully!) code like this, but being able to think more like JavaScript does always help you write better code. ✅
In this topic, we're gonna answer this question.
[ Website ] : https://davidwalsh.name/thinking-javascript
〰〰〰〰〰〰
#JavaScript #Compiler #Deep
@ProgrammingTip