Junior Frontend Developer Interview Questions

10,723 junior frontend developer 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 1411 - 1420 interview questions

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