EDIT: Looks like I messed up by my method of posting. For future help to others who experience this problem, I will be cleaning up this question.
I've been learning about JavaScript recently and ran into an issue - I believe it's a bug, but I can't find anything about it or how to fix it. For some reason, I get stuck in an infinite for-loop, where I see a constant barrage of '0' instead of the expected '0 1 2'. This is my current setup:
for (var i = 0; i < 2; i = i++) {
console.log(i)
}
Any help would be much appreciated. For convenience, I took a video of it (20 seconds or so). [I realize that videos do not help those who are trying to help after doing some reading, but I think it could still help those who have the same issue as I did. Therefore I decided to keep the video link just for that reason.]
As extra info, I ran this through Windows 10 WSL (bash for windows), Ubuntu 16.04. I am using Visual Studio Code.
https://photos.app.goo.gl/aJEgY3hEJVTMwRmK6
Thanks ahead of time!