Frontend Developer Interview Questions

8,947 frontend developer interview questions shared by candidates

Print the deepest value in a nested object. The object structure can be anything. eg. Input: let x = { a: { b: { c: { d: { e: { name: "John", age: 32 } }, f: ['Hindi', 'English'] } }, g: { email: 'john@doe.com' } } }; Expected output: John 32
avatar

Frontend Developer

Interviewed at People Group

4.1
Jul 5, 2024

Print the deepest value in a nested object. The object structure can be anything. eg. Input: let x = { a: { b: { c: { d: { e: { name: "John", age: 32 } }, f: ['Hindi', 'English'] } }, g: { email: 'john@doe.com' } } }; Expected output: John 32

What will be the output of this code? Please explain the flow or reasoning behind it. console.log(1) setTimeout( () => console.log(2) ) setTimeout( () => console.log(3) ) Promise.resolve().then( () => setTimeout( () => console.log(4) ) ) Promise.resolve().then(() => console.log(5) ) setTimeout( () => console.log(6), 0 ) console.log(7)
avatar

Frontend Developer

Interviewed at People Group

4.1
Jul 5, 2024

What will be the output of this code? Please explain the flow or reasoning behind it. console.log(1) setTimeout( () => console.log(2) ) setTimeout( () => console.log(3) ) Promise.resolve().then( () => setTimeout( () => console.log(4) ) ) Promise.resolve().then(() => console.log(5) ) setTimeout( () => console.log(6), 0 ) console.log(7)

Viewing 8351 - 8360 interview questions

Glassdoor has 8,947 interview questions and reports from Frontend developer interviews. Prepare for your interview. Get hired. Love your job.