27.look for in to me


what is wrong whit my code it says "ops, try again. There was a problem with your syntax."

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

for (var item in languages){
if (typeof.languages[item]=== "string"){


Run it through an interpreter with more verbose error messages if the error message in the console isn't specific enough.

You can use nodejs, your browser, or some online interpreter

Or at least, that's what you should do for future ones, here's what it looks like when I run it with nodejs:

$ node laitan.js
if (typeof.languages[item]=== "string"){
SyntaxError: Unexpected token .
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:511:25)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:445:3

Better, huh?


for (var item in languages)

you don't need var there.

if (typeof.languages[item]=== "string")

You don't need the dot there