Error in Day 02: Collections and environments


I am attempting to complete the Day 02 task which is part of 30 Day Challenge. I am attempting to submit my solution, but I am getting following error:

In the console the error is below:

My solution is -

I have resolved this error.