--- id: 587d7b8a367417b2b2512b4e title: Create Strings using Template Literals challengeType: 1 videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(typeof makeList(result.failure) === "object" && resultDisplayArray.length === 3, "resultDisplayArray is a list containing result failure messages.");' - text: '' testString: 'assert(makeList(result.failure).every((v, i) => v === `
  • ${result.failure[i]}
  • ` || v === `
  • ${result.failure[i]}
  • `), "resultDisplayArray is the desired output.");' - text: '' testString: 'getUserInput => assert(getUserInput("index").match(/`.*`/g), "Template strings were not used");' ```
    ## Challenge Seed
    ```js 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 = null; // change code above this line return resultDisplayArray; } /** * makeList(result.failure) should return: * [ `
  • no-var
  • `, * `
  • var-on-top
  • `, * `
  • linebreak
  • ` ] **/ const resultDisplayArray = makeList(result.failure); ```
    ## Solution
    ```js // solution required ```