-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAKE IT MODULAR - Verify Error #500
Comments
+1 |
1 similar comment
+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 |
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:
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_it_modular.js:
The text was updated successfully, but these errors were encountered: