I'm confused why I get different results when simply incrementing a variable in javascript.
First, the following obviously makes sense:
x = 0
x++
x++
// x == 2
But this doesn't make sense (not that I would actually use this in real code):
x = 0
x = x++
x = x++
// x == 0
How are these operations not practically the same? / why am I getting different final results?