Yesterday I was working through the “Re-creating the Lodash Library” module and got myself seriously stuck. I knew my code was valid yet when I tested it it just failed at the first test. In the end I just played the walkthrough video and my code was exactly the same!!!
WHAT!!?!?!?!
So, what was wrong? Why didn’t it pass the tests???
Sometimes the simplest most obvious thing is the one we don’t consider.
Save yourselves hours of stress and make sure you click the save button before trying to run code from the bash terminal…
Oh yes, I was that foolish.
Lesson learnt.