Learning Partner

Other Companies (Name Not Shared) Angular Interview Questions for 3-6 years

Shared question set for 3-6 years of experience, JavaScript coding programs. Topics and wording follow the supplied notes; these are questions, not official company guidance.

  1. Fibonacci series (iterative and recursive): for n = 6, output 0 1 1 2 3 5.
  2. Factorial of a number: for 5, output 120.
  3. Remove duplicates from an array, or an array of objects by a unique key (using a loop or filter).
  4. Flatten a nested array with and without recursion: [1, [2, [3, 4]]] becomes [1, 2, 3, 4].
  5. Split an array into chunks of fixed size: chunk([1,2,3,4,5], 2) gives [[1,2],[3,4],[5]].
  6. Reverse a string without using the built-in reverse, or check if a string is a palindrome.
  7. Count character frequency in a string: "aabbbc" gives { a: 2, b: 3, c: 1 }.
  8. Find the first non-repeating character in a string: "aabbcddee" gives "c".
  9. Implement a debounce function (commonly asked with a search input use case).
  10. Implement a memoization utility to cache results of a pure function.

Browse Angular question sets