Create Strings using Template Literals - one more thing

Create Strings using Template Literals - one more thing
0

#1

Tell us what’s happening:

There is only Template strings were used left, but I don’t know why, because my string is wrapped by `

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";

  // change code below this line
  const resultDisplayArray = arr.map( (item) => `<li class="text-warning">${item}</li>`);
  // change code above this line

  // console.log(resultDisplayArray);
  return resultDisplayArray;
}
/**
 * makeList(result.failure) should return:
 * [ <li class="text-warning">no-var</li>,
 *   <li class="text-warning">var-on-top</li>, 
 *   <li class="text-warning">linebreak</li> ]
 **/
const resultDisplayArray = makeList(result.failure);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/es6/create-strings-using-template-literals/


#2

Whenever you post a question on the forum, you are always encouraged to search the forum for answers first. In this case, had you done that, you would have found a known bug was reported for this exercise. I therefore suggest you do that now so you can find out more information about this issue.


#3

Indeed, I’ve found it later. Thanks.
I just surprised why this “known bug” still wasn’t fixed.