Senior Full Stack Engineer Interview Questions

829 senior full stack engineer interview questions shared by candidates

One of the questions: Write a function that takes an array of objects, and returns an object that has keys based on attributes of the original array. Input: [ {name: "prod1", variants: [{size: "32B", name: "prod1"}, {size: "32C", name: "prod1"}, {size: "32D", name: "prod1"}]}, {name: "prod2", variants: [{size: "30A", name: "prod2"}, {size: "32C", name: "prod2"}, {size: "32B", name: "prod2"}]}, {name: "prod3", variants: [{size: "30A", name: "prod3"}, {size: "34C", name: "prod3"}, {size: "34D", name: "prod3"}]}, {name: "prod4", variants: [{size: "28B", name: "prod4"}, {size: "32C", name: "prod4"}, {size: "34D", name: "prod4"}]}, ] Output: { 28B: [{size: "28B", name: "prod4"}], 30A: [{size: "30A", name: "prod2"}, {size: "30A", name: "prod3"}], 32B: [{size: "32B", name: "prod1"}, {size: "32B", name: "prod2"}], 32C:Array[3] 32D:Array[1] 34C:Array[1] 34D:Array[2] }
avatar

Senior Full Stack Engineer

Interviewed at ThirdLove

2.7
Jan 5, 2017

One of the questions: Write a function that takes an array of objects, and returns an object that has keys based on attributes of the original array. Input: [ {name: "prod1", variants: [{size: "32B", name: "prod1"}, {size: "32C", name: "prod1"}, {size: "32D", name: "prod1"}]}, {name: "prod2", variants: [{size: "30A", name: "prod2"}, {size: "32C", name: "prod2"}, {size: "32B", name: "prod2"}]}, {name: "prod3", variants: [{size: "30A", name: "prod3"}, {size: "34C", name: "prod3"}, {size: "34D", name: "prod3"}]}, {name: "prod4", variants: [{size: "28B", name: "prod4"}, {size: "32C", name: "prod4"}, {size: "34D", name: "prod4"}]}, ] Output: { 28B: [{size: "28B", name: "prod4"}], 30A: [{size: "30A", name: "prod2"}, {size: "30A", name: "prod3"}], 32B: [{size: "32B", name: "prod1"}, {size: "32B", name: "prod2"}], 32C:Array[3] 32D:Array[1] 34C:Array[1] 34D:Array[2] }

Viewing 741 - 750 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 829 interview questions and reports from Senior full stack engineer interviews. Prepare for your interview. Get hired. Love your job.