FrontendInterviews.dev

615. for...in Over Arrays

Easy•

Predict the output.

for (const k in ['a', 'b']) {
  console.log(typeof k, k)
}

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem