Cognizant interview question

Simple JavaScript basics qustions