Create Strings using Template Literals HELP

Create Strings using Template Literals HELP


Tell us what’s happening:

Help. Says I didn’t use Template strings.

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 = [ `<li class="text-warning">${arr[0]}</li>`,`<li class="text-warning">${arr[1]}</li>`,`<li class="text-warning">${arr[2]}</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);

Your browser information:

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

Link to the challenge:


I just tried your code, and it passed! You may try it again please. (sorry! my mistake, trying to figure it out…)

I’m sorry I first replied with a wrong stuff. I tried your code and also tried some more ways using for loop for instance and different values. It says the same thing as not using template strings.

I think this could be a bug with the validator! not sure. Hope other great people could pass this, so may help us.


Yea its weird… I am just gonna skip this one and come back to it once someone gets the correct answer


try this one.
const resultDisplayArray = => {
return <li class="text-warning">${x}</li>;