@sabrinaamazon
As already mentioned, my provided code was not completely debuged.
The rest you will have to improve by your own…
Take a look onto console and try to inspect your own code.
Follow the logical console-infos…
Add your own console-logs, to inspect and understand your own code even better.
If you still are not able to solve it → than feel free to ask for a second helping hand. But first try to do it by your own. Learning by doing is the best method to learn something.