What should I do? 27/30


#1

var languages = {
english: "Hello!",
french: "Bonjour!",
notALanguage: 4,
spanish: "Hola!"
};

// print hello in the 3 different languages
for (var x in languages) {
if (typeof languages == "string") {
console.log( );
} else {
console.log("something");
}
};


#2

You dont check a language if it is a string like this:

But this:

typeof(languages[property]) == "string"

And in the if statements it tells you to log the property it self so you have to implement that to code and you derive this:

console.log(languages[property]);

#3

@amanuel2

typeof "bob"

Does work, it's an operator, not a function
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof

@tagjumper20201
You're assigning each language to x, should probably do something with x!