I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
That’s literally what you said in the first post. That gives zero additional information.
What debugging have you tried?
This is deep enough in the curriculum that you really need some debugging skills to be successful. Just handing wrong code and an error message to someone and expecting them to debug for you won’t work very well as you progress. We need more data to help more effectively and you need to practice debugging and technical communication skills to be more effective as a developer.
Do you get any errors when you run the code manually? Can you put in a console log to see what output you are getting?