Menu
I am trying to create a script that filter a table. Searching for a solution I have found two main solutions.
**Without array
1. Loop for every keyup and add classes to each row
live:
**With array
1. Loop the table and create an array2. Loop the array for every keyup3. Loop this result and add the result
My questions are:
1. What is the benefit of the array? Speed?2. What is the benefit for an addEventListener compared to `onkeyup(function)