โœ๏ธ Content byMd. Rakibul Islam
1

Implement a debounce function. It should delay invoking the function until after a specified wait time has elapsed since the last call.

โ†’
2

Write a function that flattens a nested array to any depth.

โ†’
3

Write a function that groups an array of objects by a specified property.

โ†’
4

Implement a simple memoization function that caches the results of expensive function calls.

โ†’
5

Write a function that performs a deep comparison of two objects/arrays and returns true if they are structurally equal.

โ†’
6

Implement a binary search function on a sorted array.

โ†’
7

Implement bubble sort to sort an array of numbers in ascending order.

โ†’
8

Write a function that uses closures to create a counter with increment, decrement, and reset methods.

โ†’
9

Write a recursive function that calculates the sum of all elements in a nested array of arbitrary depth.

โ†’
10

Implement a simple Promise-returning delay/sleep function and use it to sequentially log messages with pauses.

โ†’
11

Write a function that implements the 'chunk' operation: splits an array into groups of a given size.

โ†’
12

Implement a simple Stack class with push, pop, peek, and isEmpty methods.

โ†’
13

Implement a simple Queue class with enqueue, dequeue, front, and isEmpty methods.

โ†’
14

Write a function that implements a simple linked list with methods to add a node and convert it to an array.

โ†’
15

Write a function that finds the missing number in an array containing distinct numbers from 0 to n.

โ†’
16

Write a function that returns all permutations of a given string.

โ†’
17

Write a function that implements the classic FizzBuzz problem for numbers 1 to N.

โ†’
18

Write a function that returns a Promise-based version of a callback-style function (basic promisify implementation).

โ†’
19

Write a function that implements simple class-based inheritance: an Animal base class and a Dog subclass that overrides a method.

โ†’
20

Write a function that finds the longest word in a sentence.

โ†’

Showing 1โ€“20 of 50 questions

Javascript CODE Interview Questions โ€” All Levels | UyTech