Solution not passing

Solution not passing
0

#1

I’m trying to solve this question
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/create-strings-using-template-literals

I’m using the Template string but its still not passing the solution . What is wrong ?

const resultDisplayArray = [`<li class="text-warning">${result.failure[0]}</li>`,
  `<li class="text-warning">${result.failure[1]}</li>`,
  `<li class="text-warning">${result.failure[2]}</li>`];


#2

Hi,

Instead of result.failure you have to use arr inside makeList function. This is because you are passing result.failure as arr when you call the makeList function


#3

OMG!! How I missed that. I was scratching my head from last 30 minutes.
Thank you so much for pointing that out.