Senior Interview Questions

340,965 senior interview questions shared by candidates

What is the output of below program. var a = [1,2,3,4] for (var i=0; i<a.length; i++){ setTimeout(function(){ console.log(i) },1000) } ( My Ans : it will print 4 5 times as it will store the latest reference) Next They asked me : How can i print 1,2,3,4 by changing some code in above example
avatar

Senior UI Developer

Interviewed at ValueLabs

4
Feb 16, 2018

What is the output of below program. var a = [1,2,3,4] for (var i=0; i<a.length; i++){ setTimeout(function(){ console.log(i) },1000) } ( My Ans : it will print 4 5 times as it will store the latest reference) Next They asked me : How can i print 1,2,3,4 by changing some code in above example

Our project process is broken. We are the testing team. We are falling behind, and we don't have enough resources to keep up and we cannot afford to bring on more resources. The development team keeps throwing more work at us and changes. What would you do to fix the situation.
avatar

Senior Project Manager

Interviewed at NIKE

3.9
Oct 11, 2012

Our project process is broken. We are the testing team. We are falling behind, and we don't have enough resources to keep up and we cannot afford to bring on more resources. The development team keeps throwing more work at us and changes. What would you do to fix the situation.

Viewing 331 - 340 interview questions

Glassdoor has 340,965 interview questions and reports from Senior interviews. Prepare for your interview. Get hired. Love your job.