Looks for in to me


#1

hi i'm liltle bit confused about this, how can we tell javascript to not printout the property value number. i'm trying different if arguments and didnt figureout the correct one,

var languages = {
english: "Hello!",
french: "Bonjour!",
notALanguage: 4,
spanish: "Hola!"
};
/*var lange = "english";
var langf = "french";
var langs = "spanish";*/

// print hello in the 3 different languages
for( var x in languages){
if( languages[x] == typeof !isNaN){
continue
}
console.log(languages[x]);
}


#2

Possible solution:

if( typeof languages[x] === 'string'){ 
    console.log(languages[x]);
}

#3

thanks, its the opposite tough. but you give me one clue there


if( typeof languages[x] === 'number'){
continue
}

im using this one


#4

Thanks for the figuring out of stuff! I hate hate HATE Codecademy's habit of giving vague error messages that don't actually help figure out what's wrong...


#5

Just remember that every error message has to be programmed in by the ones writing the lessons. So while it may not be very specific it's just a thing to keep in mind. Also it's free. Just putting that out there ^.^