Javascript challenge | How to Create a function that takes function as input & add a delay of 2 sec?

Published --