Coderslang_Master
I am having a hell of a time trying to understand closures. I do understand that a closure is the combination of a function and the lexical environment within which that function was declared.
Meaning that values defined in the first (outer function) are available for use in a subsequent function inside the outer function.
I've looked online and examined how the filter function works - it looks at each word in the array and based on the function in function.js it returns all the words that match based on the criteria defined in the function(closure).
But for tasks 151 and 154, I just dont seem to be able to produce a boolean result.
How can I return a boolean (True || False) in the second function.
in both tasks I get the desired results but fails because it's not returning a boolean.