Question from the Javascript - Fundamentals test

Write a for in loop in Javascript

Easy

What is this type of loop called?

const professors = ['Ritchie', 'Eich', 'Gosling', 'Rossum']; 
for (let i in professors) { 
    console.log("Here is your teacher" + professors[i]);
} 
Author: KahinaStatus: Published(Update)Question passed 3167 times
Edit
6
Community EvaluationsNo one has reviewed this question yet, be the first!