Front End Engineer Interview Questions

14,961 front end engineer interview questions shared by candidates

var X = function(someValue){ this.hello = function(){ return someValue; }; }; X.prototype.test = function(){ return this.someValue; }; var x = new X("hi"); ------ what will the following code return? alert(x.hello()); alert(x.test());
avatar

Front End Engineer

Interviewed at LinkedIn

3.8
Jul 28, 2010

var X = function(someValue){ this.hello = function(){ return someValue; }; }; X.prototype.test = function(){ return this.someValue; }; var x = new X("hi"); ------ what will the following code return? alert(x.hello()); alert(x.test());

Viewing 531 - 540 interview questions

Glassdoor has 14,961 interview questions and reports from Front end engineer interviews. Prepare for your interview. Get hired. Love your job.