Create Strings using Template Literals in es6

Create Strings using Template Literals in es6


Tell us what’s happening:

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">${val}</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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:

I get the error of Invalid regular expression flag


It is a known bug which has been reported. Check back in a week to see if it is resolved.


This is a frustrating bug.

Putting a positive spin on it, I guess we are getting experiencing searching through forums and github issues.

This ES6 section needs some refining. They way some of the questions are worded could be better too.

I know we can contribute to make improvements, I’m just wanting to complain a little and share in the frustration this bug has brought.

Happy coding to those who end up here.


Most are, ne sont pas?


the “Invalid regular expression flags” bug still exists as of today, 7-24-18.
I’m glad to know its a bug. According to the other replys I’ve read on several questions on this same cirriculum item, my code is correct.

Here’s my question:
Does having a lesson in the cirriculum showing “not completed” (i.e. no checkmark in the checkbox next to the cirriculum item) prevent me from doing anything later on in the cirriculum? For example: Is there a certificate for which I will not qualify or a part of the ciricculum that will not open if this item never shows a checkmark?

Thank you for your help.