Implement a debounce function. It should delay invoking the function until after a specified wait time has elapsed since the last call.
Write a function that flattens a nested array to any depth.
Write a function that groups an array of objects by a specified property.
Implement a simple memoization function that caches the results of expensive function calls.
Write a function that performs a deep comparison of two objects/arrays and returns true if they are structurally equal.
Implement a binary search function on a sorted array.
Implement bubble sort to sort an array of numbers in ascending order.
Write a function that uses closures to create a counter with increment, decrement, and reset methods.
Write a recursive function that calculates the sum of all elements in a nested array of arbitrary depth.
Implement a simple Promise-returning delay/sleep function and use it to sequentially log messages with pauses.
Write a function that implements the 'chunk' operation: splits an array into groups of a given size.
Implement a simple Stack class with push, pop, peek, and isEmpty methods.
Implement a simple Queue class with enqueue, dequeue, front, and isEmpty methods.
Write a function that implements a simple linked list with methods to add a node and convert it to an array.
Write a function that finds the missing number in an array containing distinct numbers from 0 to n.
Write a function that returns all permutations of a given string.
Write a function that implements the classic FizzBuzz problem for numbers 1 to N.
Write a function that returns a Promise-based version of a callback-style function (basic promisify implementation).
Write a function that implements simple class-based inheritance: an Animal base class and a Dog subclass that overrides a method.
Write a function that finds the longest word in a sentence.
Showing 1โ20 of 50 questions