JavaScript Node.js Basics Building a Command Line Application Capturing Command Line Arguments

users.forEach(getProfile); not working for me

When I start app.js nothing processes. https://w.trhou.se/0yswtgpkx5

2 Answers

Sharina Jones
PRO
Sharina Jones
Pro Student 18,771 Points

I'm on my phone so I can't check, but I think you need to pass the individual users into the function.

Something like

users.forEach(user => { getProfile (user)})

I'm to use the process object instead of passing in the individual users