Create Strings using Template Literals exam

How did you solve this problem? I have been on it for hours.
I keep getting this error = "
failuresList should be equal to the specified output."

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 = => `<li class= text-warning >${item}</li>`);
// Only change code above this line

return failureItems;

const failuresList = makeList(result.failure);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 OPR/77.0.4054.277

Challenge: Create Strings using Template Literals

Link to the challenge:

check carefully what you have written against the expected output, there is a few characters of difference

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.