I keep getting the error for
Challenge: Create Strings using Template Literals
Link to the challenge:
===>Error
** resultDisplayArray
should be equal to the specified output.:**
my 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";
// Only change code below this line
let count;
const resultDisplayArray = [];
for(count = 0; count < arr.length; count++){
resultDisplayArray.push(` ( \'<li class="text-warning\">${arr[count]} </li>\' )`)
}
// Only change code above this line
return resultDisplayArray;
}
const resultDisplayArray = makeList(result.failure);
how do I resolve this error