Array properties glitch?


I did everything said and it says "Oops, try again. Make sure to log the number of elements the languages array has to the console."

Replace this line with your code. 
var languages = ["HTML", "CSS", "JavaScript", "Python", "Ruby", "SQL", "Object Pascal", "PHP", "Swift", "C", "C#", "C++", "Objective C", "VBSscript", "Lua", "Java", ];



Two issues that I see:
1) the array got a comma at the end.
2) "Replace this line with your code." should be commented out.


I removed the comma, it still doesnt work
the replace this line with your code is just from the post, not the actual code
every other javascript compiler returns 16
so does this one
but it doesnt count it as right...


i had to use a for loop
for ( var i = 0; i <= languages.length; i++)
^ that worked
the hint worked but it didnt count it as right


Next time try to also post a link to the excercise.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.