Cognizant Interview Question

Explain JavaScript validations