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