Round 1
Questions:
- Given an HTML form and a table, you have to validate the inputs (name, mobile, email). If valid, you have to add them to the table. If not, show/hide an error message. Fairly easy, validating all cases can take time (I used easy regex to match the individual cases).
- Given an HTML accordion layout, write JS/CSS to make the accordion work. Opening one should close others unless the "multiple" checkbox is checked. Simpler than the previous question as it's just showing/hiding certain elements.
Candidate's Approach
- For the first question, I used regular expressions to validate the inputs for name, mobile, and email.
- For the second question, I implemented JavaScript and CSS to manage the accordion behavior, ensuring that only one section opens at a time unless the "multiple" option is selected.
Interviewer's Feedback
No feedback provided.