Strings using the Template Literals

I don’t know if am going about this challenge the right way.
So far am failing one test: “Template strings were used”.
Please help. Thanks!


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

  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);
console.log(resultDisplayArray);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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/

if you search for this topic in the forum you will see that is a known bug and has not been fixed yet.
Just skip it for now.

Thank You.
Could you take a look at this for me. ES6: Too much in too less
Would really appreciate it.

hi, I haven’t started the ES6 stuff yet but I can understand your concern. But I can’t really comment on whether skipping it is a good idea or not (having not completed that part of the FCC).

I’ve noticed you’ve been asking a lot of questions about theory. I didn’t want to respond directly because I wasn’t sure I can be clear in my explanation. But, my general answer to your questions will be this:
Sometimes we learn something we don’t understand and can’t think of reasons to use. But later when we have a real job, we will find something that can only be fixed using those methods. I know this is very vague, but to go into more detail requires more skill than I currently have.

On the other hand, all your questions can be answered via a google search but you have to be patient enough to read a lot of stuff that you also may not understand yet. So, you can wait until you need this stuff to learn more, or you can find out a little now via a limited filter of understanding now. Your choice.