Course · Section 12: Numbers, Dates, Intl and Timers · Lecture 183: The Remainder Operator
Implement `everyNth(arr, n)` returning the elements at indices `0, n, 2n, ...` using the remainder operator.
+ 1 hidden test run on Submit.
Filtering on the index modulo n selects every nth element.
Run your code to see results.