Create Strings using Template Literals pt 352624

I’ve made a list. I’ve implemented template literals. What am I missing?

Your code so far

const result = {
  success: ["max-length", "no-amd", "prefer-arrow-functions"],
  failure: ["no-var", "var-on-top", "linebreak"],
  skipped: ["id-blacklist", "no-dup-keys"]
function makeList(arr) {
  "use strict";

  // change code below this line
  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>;
  // change code above this line

  return resultDisplayArray;
 * makeList(result.failure) should return:
 * [ <li class="text-warning">no-var</li>,
 *   <li class="text-warning">var-on-top</li>, 
 *   <li class="text-warning">linebreak</li> ]
const resultDisplayArray = makeList(result.failure);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.51.

Link to the challenge:

This lesson is bugged - the tests aren’t working.

With that being said, be mindful of the value being passed into the makeList function when invoked and how it’s referenced as an argument within the function declaration.

1-you need to use a for loop for this challenge
2- don’t use result.failure rather use the ‘arr’ parameter you’re given in the function
3- once you get your code into good shape you will hit a bug in FCC . So at that point you can skip the challenge till the bug is fixed. The bug will result in an error like this:
// running test
Invalid regular expression flags
// tests completed

If you see any other errors, please fix them using the tips I mentioned already.

you can confirm your code is in good shape on website or any other javascript testing method.