Frontend Developer Interview Questions

8,947 frontend developer interview questions shared by candidates

Q4. Based on my answer to the question above, he mentioned this code? - He said, that you are saying javascript is async. then what will be the output of this code console.log("a") Promise. execution() console.log("b") Will it wait to resolve promise or it will execute parallely ?
avatar

Senior Frontend Developer

Interviewed at GlobalLogic

3.8
Sep 27, 2022

Q4. Based on my answer to the question above, he mentioned this code? - He said, that you are saying javascript is async. then what will be the output of this code console.log("a") Promise. execution() console.log("b") Will it wait to resolve promise or it will execute parallely ?

Q.If a button hit results in an API hit, and if I hit the button multiple times, how can you do it the angular way to make sure all n-1 requests sent to Server are cancelled and only nth request is send to server? How will you accomplish this? Q. A Puzzle: child1 says "I am a boy". child2 says "I am a girl". Given that atleast 1 is lying, how will you determine who is boy, who is girl? Q.Why is Angular used over JavaScript? Q.Two sorted arrays(no.s) of n, m+n length where m+n one has n empty places. In minimum Time Complexity & Space, obtain the combination sorted into m+n array.
avatar

Software Engineer(Frontend)

Interviewed at Quovantis Technologies

4
Jan 27, 2017

Q.If a button hit results in an API hit, and if I hit the button multiple times, how can you do it the angular way to make sure all n-1 requests sent to Server are cancelled and only nth request is send to server? How will you accomplish this? Q. A Puzzle: child1 says "I am a boy". child2 says "I am a girl". Given that atleast 1 is lying, how will you determine who is boy, who is girl? Q.Why is Angular used over JavaScript? Q.Two sorted arrays(no.s) of n, m+n length where m+n one has n empty places. In minimum Time Complexity & Space, obtain the combination sorted into m+n array.

Viewing 521 - 530 interview questions

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