Javascript Engineer Interview Questions

1,680 javascript engineer interview questions shared by candidates

what is currying in the javascript Currying is a technique used to transform a function with multiple arguments into a sequence of nested functions, each taking a single argument. The curried function returns a new function for each argument until all arguments are provided, and then it finally returns the result. This technique allows for partial application of a function, meaning you can pass some arguments now and the rest later.
avatar

Senior Javascript Developer

Interviewed at Synechron

4.2
Mar 8, 2024

what is currying in the javascript Currying is a technique used to transform a function with multiple arguments into a sequence of nested functions, each taking a single argument. The curried function returns a new function for each argument until all arguments are provided, and then it finally returns the result. This technique allows for partial application of a function, meaning you can pass some arguments now and the rest later.

General - what's O(n), which sorting algorithms do you know, how to sort numbers, knowing that number is in the first half, difficulty of sorting from 0 to 100. Html/css - difference between outside space/inner space, box components, is it possible to add func into inline component, types of position in css, difference. Js - compare strings and numbers (==/===), what's this, function declaration/expression vs arrow func, rest/spread operators, slice vs sort, map vs find, what returns a new array, what goes through the first array, timeout vs promise who will be the 1st in the console, write a func to get middle age. Ts - interfaces, union type, turples, utility types. React - virtual dom, what's jsx for, which limitations has, is it possible to return 2 divs from a component, how to solve it, hooks. Git - pull/push, what's code review for.
avatar

Student JavaScript Intern

Interviewed at EPAM Systems

4
Aug 18, 2024

General - what's O(n), which sorting algorithms do you know, how to sort numbers, knowing that number is in the first half, difficulty of sorting from 0 to 100. Html/css - difference between outside space/inner space, box components, is it possible to add func into inline component, types of position in css, difference. Js - compare strings and numbers (==/===), what's this, function declaration/expression vs arrow func, rest/spread operators, slice vs sort, map vs find, what returns a new array, what goes through the first array, timeout vs promise who will be the 1st in the console, write a func to get middle age. Ts - interfaces, union type, turples, utility types. React - virtual dom, what's jsx for, which limitations has, is it possible to return 2 divs from a component, how to solve it, hooks. Git - pull/push, what's code review for.

I was asked whether inheritance is possible or not (which is not IMHO) in javascript. I answered with no, since the language does not support it at all. The only way it can be achieved is writing custom mechanism which MIMICS (more or less successfully) the inheritance. So even it is possible I would say that the question was unclear and it caused me a hard time to answer.
avatar

Javascript Developer Puredeal

Interviewed at IG Group

2.9
Feb 22, 2013

I was asked whether inheritance is possible or not (which is not IMHO) in javascript. I answered with no, since the language does not support it at all. The only way it can be achieved is writing custom mechanism which MIMICS (more or less successfully) the inheritance. So even it is possible I would say that the question was unclear and it caused me a hard time to answer.

Viewing 91 - 100 interview questions

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