Hey,
You are correct, when you say that the while loop is not equivalent to the for loop using let. My intent was not to show a while loop equivalent to the for loop but instead the while loop is equivalent to what many people expect the for loop to behave like.
Because a while loop is more explicit in it's behavior than a for loop, I picked it to point out a common misconception about for loops using let.
But I should consider rephrasing it if it leads to confusion.
Regarding the transpilation there is a misunderstanding. It does not transpile the while loop but the for loop instead. The point of showing the transpilation is to show how the for loop using the let really behaves.
With my two examples (while loop and transpilation) I tried to show more explicit versions of the for loops.
You can also think of it in this way:
while loop: more explicit version of a for loop using var
transpiled code: more explicit version of a for loop using let.
To wrap it up, the main point of my article is to create awareness about the differences of using let or var in a for loop and try to show more explicit versions to support understanding how they work.