My code is producing the correct output, but lesson not accepting it

My code is producing the correct output, but lesson not accepting it
0

#1

Tell us what’s happening:
My result is correct. Why is my lesson not accepting it?

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";

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

  return resultDisplayArray;
}

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.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/create-strings-using-template-literals


#2

Your code is correct. There is a known bug for the challenge tests being worked on.


#3

Thanks for the swift response. I think there was also a bug 2 lessons ago. I think I’ll skip ES6 lessons for now.


#4

This particular challenge is the only one I know that has a bug in the tests.