Frontend Engineer Interview Questions

13,302 frontend engineer 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 2431 - 2440 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 13,302 interview questions and reports from Frontend engineer interviews. Prepare for your interview. Get hired. Love your job.