Open jmz527 opened 7 years ago
+1
+1
So your running a for loop on the wrong side of the code. You need the arg you return to be an array and use the forEach loop on the other side. Does that make sense?
Only one thing can be returned and you are trying to return something for every item in the array.
Would be helpful if the verify
would provide a hint instead of this cryptic error 🙏
Yup, that makes sense. Don't put your callback function within a loop - the module should only make one callback. I got rid of that loop, added a filter to my module file, a console log loop to my main file, and I got it up & working.
Here's the part of the directions that tripped me up:
You must write a module file to do most of the work.
If it's too much trouble to work in a human-friendly error, then maybe just revise the lesson a bit or add in an explicit warning.
Thanks for the great workshop!
As far as I can see, the problem statement tells you that you need to pass an array to callback and call the callback exactly pass.
How can we make it more friendly?
Feel free to open a PR.
I'm getting an error when verifying the "Make It Modular" exercise. One of the processors seems to be missing a call function.
Here's my "make_it_modular.js" file:
Here's the "my_module.js" file:
And here's the output when I run _learnyounode verify make_itmodular.js: