Hackerrank OA
2 Javascript Questions, 2 Hours
- 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
I received recruiter call after this.