0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Keep Long Words

Combine a loop, a condition, and .push() to build an array containing only values that match a rule.

Your task

Create longWords from words whose length is at least 5, then display Long: apple,grape. Use a loop; .filter() belongs to a later module.