Cognizant interview question

How Javascript Even looping works?