Array properties glitch?


#1


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", ];

console.log(languages.length);


#2

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.


#3

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...


#4

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


#5

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


#6

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