Ad
  • Custom User Avatar

    I don't have much deep knowledge about this topic, but... I feel like this code runs 2 diffirent loops? One of them for creating the array from the argument, one of them for the filter method? I am told that this is not a good practice, especially for longer arguments because it takes lots of resources from the computer. But... I always feel like this is more elegant solution.

  • Custom User Avatar

    Hello.
    I am very new in JavaScript, and trying to understand the solutions here. In this code, what does "c" parameter do? Where the arrow function get that parameter? Could someone explain please?