Lead Web Developer Interview Questions

18,878 lead web developer interview questions shared by candidates

There was one question where I was asked "without running it, what will this 10-line javascript program write to the console?". It contained a bug where a function "accidentally" modified a global variable "i" instead of making a local "i", and the global was later printed to console. After correctly guessing the (buggy) output I was asked to fix the program which just needed the "var" keyword to be added inside the function.
avatar

Web Developer

Interviewed at Markit On Demand

3.3
Dec 8, 2014

There was one question where I was asked "without running it, what will this 10-line javascript program write to the console?". It contained a bug where a function "accidentally" modified a global variable "i" instead of making a local "i", and the global was later printed to console. After correctly guessing the (buggy) output I was asked to fix the program which just needed the "var" keyword to be added inside the function.

Viewing 8571 - 8580 interview questions

Glassdoor has 18,878 interview questions and reports from Lead web developer interviews. Prepare for your interview. Get hired. Love your job.