5/7 Iterator documentation


#1


Guys, help!!!


#2

The last line should just log the entire list of interestingWords.


#3

Hi,

you are using a Arrow Function at the last line , remove the return statement so your code look like this :

console.log(interestingWords.every(word => word.length > 5
));

Good luck
cheers.


#4

the same(

Anyway, thanks for help.


#5

Still haven’t changed the last line. Can we have a link to this exercise, please?


#6

https://www.codecademy.com/courses/learn-javascript-iterators/lessons/javascript-iterators/exercises/documentation?course_redirect=introduction-to-javascript


#7

Belay that comment about the last line. Once we see the actual lesson it makes more sense.

console.log(interestingWords.every(word => word.length > 5));

Notice your line has unneeded braces?


When braces are used, the return keyword must be present.


#8

thanks for help. nothing helps, but i moved on) (i don’t know english well, so if i did mistakes - forgive me :slight_smile: )