[help] Create Strings using Template Literals

Tell us what’s happening:
Hey! I’m having an issue with this one. When I try running the code in my browser’s console it returns what to me appears to be correct. The weird thing is that it throws an error saying that the array I’m creating (resultDisplayArray) is not defined. Is there any part of the wording that I’m not understanding?

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 = arr.map(x =>`<li class="text-warning">${x}</li>`);
    // change code above this line
    return resultDisplayArray;

Your browser information:

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

Link to the challenge:

I managed to solve it. Turns out It was simply the very bottom line of code that I had changed from:

const resultDisplayArray = makeList(result.failure);

Changed it back and immediately passed.