Element Mapping

Report a typo

Match the parts of the for ... in loop with their purpose.

Match the items from left and right columns
for (let i ...) {
for (let i in smth)
console.log(smth[i]);
Variable to which the key will be written on each iteration of the loop
Printing the value of an object to the console
The loop is traversed by this variable's keys
___

Create a free account to access the full topic