Senior Front End Engineer Interview Questions

688 senior front end engineer interview questions shared by candidates

var a = {a: 1} var b = Object.create(a) console.log(a) and console.log(b) a.a = 2 console.log(b.a) The interviewer got confused and said that the prototype is copied to b and if we change a.a it will not have any impact on b.a. But rather b's __proto__ will have a link to a and if we change or delete a.a it will be reflected in b
avatar

Senior Software Engineer Front End

Interviewed at Walmart

3.4
Oct 12, 2018

var a = {a: 1} var b = Object.create(a) console.log(a) and console.log(b) a.a = 2 console.log(b.a) The interviewer got confused and said that the prototype is copied to b and if we change a.a it will not have any impact on b.a. But rather b's __proto__ will have a link to a and if we change or delete a.a it will be reflected in b

Viewing 211 - 220 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 688 interview questions and reports from Senior front end engineer interviews. Prepare for your interview. Get hired. Love your job.