Junior Frontend Developer Interview Questions

8,133 junior frontend developer interview questions shared by candidates

You have an object of 2 arrays coming from the server. An array of all users, and an array of all messages. const data = { users: [ { id: Int, name: String, }, ... ], messages: [ { id: Int, text: String, userId: Int, receiverId: Int, }, ... ], }; Write a function which iterates through received data and returns a single array with data in the format: [{ messageText, userFromName, userToName }]
avatar

Frontend Developer

Interviewed at Amity

3.7
Sep 3, 2024

You have an object of 2 arrays coming from the server. An array of all users, and an array of all messages. const data = { users: [ { id: Int, name: String, }, ... ], messages: [ { id: Int, text: String, userId: Int, receiverId: Int, }, ... ], }; Write a function which iterates through received data and returns a single array with data in the format: [{ messageText, userFromName, userToName }]

Viewing 1711 - 1720 interview questions

Glassdoor has 8,133 interview questions and reports from Junior frontend developer interviews. Prepare for your interview. Get hired. Love your job.