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