Confusion with error? (HTML/CSS/JS)

Hi guys, this problem is not related to the FCC challenges but the people here are very helpful so I thought I would ask here.

I am stuck in the JS section of the CodePen. The “parent” variable is doing fine but the console doesn’t return the “previous variable”. Instead, it returns:

I have been struggling with this for a while. If anybody can assist me I would really appreciate it!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.