I'm feeling really lost and would appreciate some help.
Can someone explain why...?
true++
This code snippet produces...
"Uncaught SyntaxError: Invalid left-hand side expression in postfix operation"
However, if we try...
undefined++
We get...
NaN
Furthermore, if we try this instead...
let a = true;
a++;
a;
The end result is 2.