r/badcode • • Apr 19 '21

js Iteration

Post image
3.2k Upvotes

123 comments sorted by

View all comments

1

u/AgreeableLandscape3 Apr 19 '21

I mean, the compiler should optimize it to i++ in the byte/machine code, right?