At about 10 mins past 4 in the morning, she climbed down the stairs and boom!!! I knew there was a bug.

Using the right tool wrongly.

She must have spent a while trying to figure out what was her problem but still couldn’t. yet she was confident that it was correct because she copied it directly from MDN.

I looked at her code and it was syntactically correct to me.

“What is the problem with the code?” I asked.

“The array is supposed to be empty but it isn’t, looking at the logged value” She replied.

“I removed an item at the first…

Tyav Moses

Love learning and sharing knowledge…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store