A set of challenges to apply for Web Developer Freelancer in DevRoom.
-
Question 1 Create a ReactJS component that displays a list of users retrieved from the following API endpoint: https://jsonplaceholder.typicode.com/users. The component should display the user's name, email, and phone number. Use the fetch() method to retrieve the data from the API.
-
Question 2 Create a ReactJS component that displays a form for adding new users to the list. The form should include fields for the user's name, email, and phone number. When the user submits the form, the new user should be added to the list displayed in the component from Question 1. Use the POST method to add the new user to the API.
-
Question 3 Write unit tests for the ReactJS component created in Question 1. The tests should include checks for the correct display of the user's name, email, and phone number, as well as error handling for failed API requests.
-
Question 4 Write integration tests for the ReactJS component created in Question 2. The tests should include checks for successful submission of the form, as well as error handling for failed API requests.
- Question 5 Write a program that takes a string as input and outputs the most common word in the string. If there are multiple words with the same frequency, the program should output all of them. Use JavaScript to write the program.