Pass other test except this one, i was trying several ways to add it into failureList array but nothing work, anyone had an idea how to solve it ?
failuresList
should be an array containingresult failure
messages.
My Code is
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) {
// Only change code below this line
const failureItems = [];
arr.forEach(arr => console.log(`'<li class="text-warning">${[arr]}</li>'`))
console.log(failureItems);
return failureItems;
}
const failuresList = makeList(result.failure);
i mean there is possibilities to add to an array if my code like this… i was clean my code so the solution is subjectively by your tought…
Link to the challange below
Create Strings using Template Literals