I can't understand the solution to this problem

[The problem](https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/create-strings-using-template-literals)
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) {
  "use strict";
  // change code below this line
  const failureItems = [];
  for (let i = 0; i < arr.length; i++) {
    failureItems.push(`<li class="text-warning">${arr[i]}</li>`);
  }
  // change code above this line
  return failureItems;
}

const failuresList = makeList(result.failure);

how is arr taking data from result

const failuresList = makeList(result.failure);

The result array is being passed into the makeList function as the variable arr. So in the function, anywhere you are accessing arr you are really accessing the result array.

here where the function is called

oh , i totally ignored that line. Thanks!