Chapter: 9. Closures

9.1 K Times

Write a function named applyKTimes that takes an integer K and a closure and calls the closure K times. The closure will not take any parameters and will not have a return value.

9.2 Div3

Use filter to create an array called multiples that contains all the multiples of 3 from numbers and then print it.