Searched around and found out that the front-end OA also consists of typical Leetcode questions. However, it turned out to be two practical front-end tasks that require vanilla JS:
- Given a sign-on form markup, write a JS script to meet various field requirements (e.g., email length, disallowed characters). Clicking the “add” button should append the sign-on data below the table. If the information validation fails, an error alert should pop up.
- Implement an accordion using Vanilla JS with an option for multiple clicks, allowing multiple accordions to be opened.
These tasks are not particularly difficult, but I usually work with React, so using only JS initially feels a bit challenging.