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 3039 times
Edit
6
Community Evaluations
developer avatar
Nicolas
26/11/2023
Il est souvent conseillé d'utiliser une boucle for...of pour les Array, j'ai donc cru à un piÚge. Suis-je le seul à trouver la formulation ambiguë ?
developer avatar
jonathan
28/05/2023
that one help us to cool down because of the low amount of time
developer avatar
Auteur anonyme
05/06/2023
Ahah sorry for the low amount of time. Do not hesitate to add a review on others questions if you think that the time is too low and we will update them.