Senior Front End Developer Interview Questions

1,442 senior front end developer 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 471 - 480 interview questions

Glassdoor has 1,442 interview questions and reports from Senior front end developer interviews. Prepare for your interview. Get hired. Love your job.