Amazon OA | FEE 2 (Front End Engineer II)
Anonymous User
418

Hackerrank OA

2 Javascript Questions, 2 Hours

  1. 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)
  2. 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.

Comments (2)