Create Strings using Template Literals ES6

**Tell us what’s happening:**hey guys I’ve written the code below to pass this challenge in ES6 but the error section keeps showing me “Invalid regular expression flags”

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) {
  // change code below this line
const resultDisplayArray = => `<li class="text-warning">${x}</li>`)
  // 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:

This is a known bug in the tests which is being work on. Check back in a few days.


oh thanks, I’ve been testing this for about 1 hour with different types of syntax :slight_smile: