Senior Frontend Engineer Interview Questions

1,541 senior frontend engineer interview questions shared by candidates

Given an object with an ID and array of dependancies that reference other IDs within the main object, create a function that accepts the main object and the desired ID such that the output would be all the dependancies, then the given ID. EX: all = [ {id:1, dep:[4,5]}, {id:4, dep:[6]}, {id:5, dep:[]}, {id:6, dep:[]} ] func(all, 1) => 6,4,5,1
avatar

Senior Frontend Engineer

Interviewed at Vanta

3.3
Jan 23, 2025

Given an object with an ID and array of dependancies that reference other IDs within the main object, create a function that accepts the main object and the desired ID such that the output would be all the dependancies, then the given ID. EX: all = [ {id:1, dep:[4,5]}, {id:4, dep:[6]}, {id:5, dep:[]}, {id:6, dep:[]} ] func(all, 1) => 6,4,5,1

Viewing 191 - 200 interview questions

Glassdoor has 1,541 interview questions and reports from Senior frontend engineer interviews. Prepare for your interview. Get hired. Love your job.