Amazon - Software Engineer (Frontend) - OA
Education: Master’s
Years of Experience (YOE): 4
Questions Asked:
Use JavaScript, HTML, and CSS to build an accordion.
- First accord by default expanded
- Clicking on the title of an expanded item collapses it.
- Clicking on the title of a collapsed item expands it
// while collapsing any other expanded item. - However, if multiple checkbox is clicked,
// allow multiple expanded items at same time. - Both expanded and collapsed icons should
// at title’s rightmost corner
// Get all the accordion containers