Failure JavaScript lessons plattform (exercise nº 27) (fixed)


#1

I implemented in 'introduction to Objects II' number 27, this code:
var languages = {
english: "Hello!",
french: "Bonjour!",
notALanguage: 4,
spanish: "Hola!"
};

// print hello in the 3 different languages
for (var key in languages)
{
if (typeof key === "string")
{
console.log(languages[key] + " is considered in this program like a '" + typeof key + "'");
}
}
and the result was this:
Hello! is considered in this program like a string
Bonjour! is considered in this program like a string
4 is considered in this program like a string
Hola! is considered in this program like a string

So, it's impossible to go forward, at list you change the notALanguage value for any different to 4.
I could carry on because of that.

I think could be good idea if someone check this and change the inner code to fix it.

Thanks.
Hercs