Cognizant interview question

Explain JavaScript validations