Frontend Software Engineer Interview Questions

869 frontend software engineer interview questions shared by candidates

Please write a simple React app that does the following: A component takes one prop named "input". There are three types of input: 1. If the prop is a falsy value, return a live-updating date and time (update every second) in a div. Please pretty-format the date and time. Use the native JavaScript Date object. 2. If the prop is an array, return a list of divs, each containing one element of the array. 3. If the prop is anything else, return the value of the prop in a div. Functional components using React Hooks is preferred, though not required.
avatar

Frontend Software Engineer

Interviewed at Ramp

3.8
Jul 26, 2022

Please write a simple React app that does the following: A component takes one prop named "input". There are three types of input: 1. If the prop is a falsy value, return a live-updating date and time (update every second) in a div. Please pretty-format the date and time. Use the native JavaScript Date object. 2. If the prop is an array, return a list of divs, each containing one element of the array. 3. If the prop is anything else, return the value of the prop in a div. Functional components using React Hooks is preferred, though not required.

The code challenge on the application is just a base64 encoded string that once you decode it is a lambda URL. Once you decode it and go to the URL it is some markdown with instructions. The instructions have another lambda URL that you go to plus instructions that there is a 3rd hidden URL within the HTML on the page rendered by the 2nd URL. You have to filter a bunch of DOM nodes based on matching some conditions of attributes, which lead you to yet another lambda URL. This final URL just returns a string and the instructions state to build a simple react app in CodeSandbox that fetches the string and displays it with a typewriter effect using only React APIs (and not CSS). The submission is just the "flag" that you captured (which is just the string that the last lambda URL returns) and the link to your code sandbox.
avatar

Staff Software Engineer | Frontend

Interviewed at Ramp

3.8
Apr 8, 2024

The code challenge on the application is just a base64 encoded string that once you decode it is a lambda URL. Once you decode it and go to the URL it is some markdown with instructions. The instructions have another lambda URL that you go to plus instructions that there is a 3rd hidden URL within the HTML on the page rendered by the 2nd URL. You have to filter a bunch of DOM nodes based on matching some conditions of attributes, which lead you to yet another lambda URL. This final URL just returns a string and the instructions state to build a simple react app in CodeSandbox that fetches the string and displays it with a typewriter effect using only React APIs (and not CSS). The submission is just the "flag" that you captured (which is just the string that the last lambda URL returns) and the link to your code sandbox.

Viewing 311 - 320 interview questions

Glassdoor has 869 interview questions and reports from Frontend software engineer interviews. Prepare for your interview. Get hired. Love your job.