Tell us what’s happening:
I keep getting this result even though I am putting in the code that returns the failure array;
// running tests
resultDisplayArray
should be equal to the specified output. // tests completed
Your 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
const resultDisplayArray = arr.map(item=> `<li class="text=warning">${item}</li>`);
// Only change code above this line
return resultDisplayArray;
}
const resultDisplayArray = makeList(result.failure);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0
.
Challenge: Create Strings using Template Literals
Link to the challenge: