javascript run function forever

Solutions on MaxInterview for javascript run function forever by the best coders in the world