Tech Mahindra Interview Question

3. How do you perform user-validation on the front end?