This is in Chromium 78:
for (var i in [1,3,5]) console.log(i+1)
Now, I expected for (var i in [1,3,5]) console.log(i+1)
to output 1, 2, 3, because i
should be an index value. I know the MDN docs mention that the order may come out strangely in this case, but why the type conversion?