Could you post a link to the challenge you’re trying to pass please?
Also, when posting code, please enclose it within two sets of triple backticks (```) so that it displays more clearly. You can use CTRL+e to create these backticks automatically and then paste your code in-between.
I’ve edited your code 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.
You don’t need to create another variable inside this for loop.
The goal is to add the list items to the array.
One way to fix this would be to use an array method that adds elements to the end of the array.