// So here below we create an array that is nested in an object.
const result = {
success: ["max-length", "no-amd", "prefer-arrow-functions"],
failure: ["no-var", "var-on-top", "linebreak"],
skipped: ["no-extra-semi", "no-dup-keys"]
};
function makeList(arr) { // Here we create a function that has (arr) as it’s parameter.
const failureItems = []; // Here we create an array
for (let i = 0; i < arr.length; i++) { // Here we create A for loop that has the function parameter’s length as it’s condition
failureItems.push(`<li class="text-warning">${arr[i]}</li>`); //What are we “pushing” to arr here? Is it the result array above But how?
}
return failureItems;
} ```
My question is, in which line are we inserting the failure array into the parameter arr?
what’s the link to the challenge?
Here it is