Javascript Interview Questions

1,680 javascript interview questions shared by candidates

Write pseudo code for a function that accepts a Board class that contains three public methods and will return whether the Board passed in is “solvable”. The three Board methods include “canMove” that accepts a direction parameter, move() that accepts a direction parameter, and “isSolvable” that returns a boolean of whether or not the board passed in is “solvable”.
avatar

JavaScript Engineer

Interviewed at Opower

3.7
Jun 20, 2015

Write pseudo code for a function that accepts a Board class that contains three public methods and will return whether the Board passed in is “solvable”. The three Board methods include “canMove” that accepts a direction parameter, move() that accepts a direction parameter, and “isSolvable” that returns a boolean of whether or not the board passed in is “solvable”.

Create a “debounce” function like the one provided by the underscore JavaScript framework that will take a function as the first parameter and return a function that will only be called once within the milliseconds of time (that is passed in as the second parameter).
avatar

JavaScript Engineer

Interviewed at Opower

3.7
Jun 20, 2015

Create a “debounce” function like the one provided by the underscore JavaScript framework that will take a function as the first parameter and return a function that will only be called once within the milliseconds of time (that is passed in as the second parameter).

The code challenge was a tricky one: write a function that takes two strings and removes all instances of stringA from stringB. In-person interview pairing: write a function that takes a roman numeral and returns it as an integer. Test driven with Mocha.
avatar

Junior Javascript Developer

Interviewed at ValuePenguin

4.9
Oct 9, 2015

The code challenge was a tricky one: write a function that takes two strings and removes all instances of stringA from stringB. In-person interview pairing: write a function that takes a roman numeral and returns it as an integer. Test driven with Mocha.

Viewing 101 - 110 interview questions

Glassdoor has 1,680 interview questions and reports from Javascript interviews. Prepare for your interview. Get hired. Love your job.