Thanks, Jonathan for replying. I am trying to accomplish the task using closures as it seems to be little off beat compared to loops.
Also you can share some simple exercises to be solved using loops. I will give it a try and share my soln. Later you can optimize it.
Currently on higher order functions. Please share some easy to understand resource for this topic.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
For further actions, you may consider blocking this person and/or reporting abuse