Something i dont really understand

Pass other test except this one, i was trying several ways to add it into failureList array but nothing work, anyone had an idea how to solve it ?

failuresList should be an array containing result failure messages.

My Code is

const result = {

  success: ["max-length", "no-amd", "prefer-arrow-functions"],

  failure: ["no-var", "var-on-top", "linebreak"],

  skipped: ["no-extra-semi", "no-dup-keys"]


function makeList(arr) {

  // Only change code below this line

  const failureItems = [];


  arr.forEach(arr => console.log(`'<li class="text-warning">${[arr]}</li>'`))

  return failureItems;


const failuresList = makeList(result.failure);

i mean there is possibilities to add to an array if my code like this… i was clean my code so the solution is subjectively by your tought…

Link to the challange below
Create Strings using Template Literals

I don’t want to come right out and tell you how to do it. I want to gently push you toward the answer.

If the hint I gave you above is not working, then google “javascript add item to array”.

1 Like

:joy: good one

1 Like

You may want to tick the actual solution than my comment :slightly_smiling_face:

Hi @haricutter !

Welcome to the forum!

You don’t need to keep editing your post every time you have a reply.

The best way would be to leave the original post as it is and reply to the people involved in the conversation like I am doing right now.

As it is stands now, no one really knows what the original conversation was about.

Just something to keep in mind for future posts.


1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.