At about 10 mins past 4 in the morning, she climbed down the stairs and boom!!! I knew there was a bug.
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…