Create Strings using Template Literals errors

Tell us what’s happening:
Getting error invalid expressions flag in console

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 => {return `<li class="text-warning">${val}</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:

The ‘return’ statement you added in your map command doesn’t really belong there as the whole array is supposed to be returned (review the comments in the code).
But also there is a bug in FCC. Refer to this: