My main issue was that I didn’t understand the syntax (if that’s the correct word) for calling this kind of function and passing in the callback. If I don’t understand how a function is working I usually just run the code and analyze what comes out and that helps me to understand. Couldn’t do that in this case due to the aforementioned lack of understanding.
I highly recommend anyone who struggles from time to time with understanding how a specific method, function, etc works, grab a ChatGPT account. I find it’s explanations to be very clear.
As an example, below is the chat that I had with ChatGPT regarding my lack of understanding for the function referenced in this forum thread. Note, I do not use ChatGPT to solve challenges in the course (though it could). I only use it to get a better understanding of how things work.
Hopefully it doesn’t take our would be jobs anytime soon
(I’ve blurred as the first image shows the answer to a challenge)