I have edited your post so the solution is blurred out for those that haven’t worked on this problem yet. If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.
Your task is to create a list of failure messages. Instead of manually writing out list items for each failure message we could instead make the computer loop through the array and push those elements to the list.
Basically we are forcing the computer to do the work instead of us manually writing everything out.
You could also replace the for loop with a for of loop too.
const failureItems = [];
for (const message of result.failure){
failureItems.push(`<li class="text-warning">${message}</li>`);
}