Spot the array-iteration result: for...in is used on ["a", "b"] with no extra properties. What does it yield?
Explanation
Array indexes are enumerable string property keys, so for...in yields strings such as 0 and 1 rather than the element values. Expecting a and b confuses key enumeration with the direct value iteration performed by for...of.