Cognizant interview question

Javascript logical questions with console outputs