Question from the Javascript - Fundamentals test

Archived

What does the following code display?

const professors = [ 
    { name: "Ritchie", age: 70, },
    {name: "Eich", age: 60,}];
for (let professor of professors) { 
    console.log("Here is your teacher " + professor.name +" "+ professor.age+" " + "years old");
 }
Author: KahinaStatus: Archived(New question!)(Update)Question passed 14 times
-2
Community Evaluations
developer avatar
Guillaume
06/04/2022
ça retourne une erreur de syntaxe
developer avatar
Guillaume
06/04/2022
Corrigé, tout est ok
developer avatar
Enguerran
12/04/2022
Il y a de gros soucis de syntaxe dans le code Ă  commenter...