Off by one errors: The loop that you indicated (for (let i = 0; i < 10; i++)) actually does run 10 iterations (index 0 to 9).
for (let i = 0; i < 10; i++)
Thanks for identifying the error in the ‘off by one’ code. I have corrected the error.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.