Help fix bug please

can anyone out there help with this please, it not passing…

  const resultDisplayArray = [ ];
      for (let i = 0; i < arr.length; i++) {
         resultDisplayArray.push('<li class="text-warning">${arr[i]}</li>')

You will have to edit your post and format the code. Or you can use the Ask for help button on the challenge page.

  1. It is this challenge right?

  2. Do you have a specific question?

yes, it’s a challenge, i will post it again

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 easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


much appreciated, thank you

You are using single quotes ('') you should be using back-tick (``) for Template literals.

it’s now passed, thank you for helping