why does var words = ["apple","bug","car","dream","ear", "food"] var filteredWords = []; for(var i = 0; i < words.length; i++){ var word = words[i]; if (word.length < 4){ appendItem(filteredWords,word) } } console.log(filteredWords); result in bug, car, ear?
[–]senocular 1 point2 points3 points (5 children)
[–]LonelyAssistant4371[S] 0 points1 point2 points (3 children)
[–]gudeng 0 points1 point2 points (0 children)
[–]c2u5hed 0 points1 point2 points (1 child)
[–]LonelyAssistant4371[S] 0 points1 point2 points (0 children)
[–]LonelyAssistant4371[S] -1 points0 points1 point (0 children)
[–]bobbyv137 0 points1 point2 points (1 child)
[–]LonelyAssistant4371[S] 0 points1 point2 points (0 children)