Full Stack Developer Interview Questions

19,456 full stack developer interview questions shared by candidates

Write a JavaScript function that takes an array of fruit names as input and returns an object where each key is the uppercase first letter of the fruit names, and the corresponding value is an array of all fruits that begin with that letter. The grouping should be case-insensitive, meaning that fruit names like "Apple" and "apple" should be treated the same, and the output should preserve the original order of the fruits within each group. The keys in the resulting object should be sorted based on the order they appear in the input array, not alphabetically. Input ['apple', 'banana', 'ananas', 'blueberry', 'cherry', 'avocado', 'blackberry'] Output { A: ['apple', 'ananas', 'avocado'], B: ['banana', 'blueberry', 'blackberry'], C: ['cherry'] }

Full Stack Developer

Interviewed at Moksa.ai

4.3
May 26, 2025

Write a JavaScript function that takes an array of fruit names as input and returns an object where each key is the uppercase first letter of the fruit names, and the corresponding value is an array of all fruits that begin with that letter. The grouping should be case-insensitive, meaning that fruit names like "Apple" and "apple" should be treated the same, and the output should preserve the original order of the fruits within each group. The keys in the resulting object should be sorted based on the order they appear in the input array, not alphabetically. Input ['apple', 'banana', 'ananas', 'blueberry', 'cherry', 'avocado', 'blackberry'] Output { A: ['apple', 'ananas', 'avocado'], B: ['banana', 'blueberry', 'blackberry'], C: ['cherry'] }

What does the term "clean code" mean to you? 30 minutes of resume questions and past projects. Last 30 minutes of technical/coding part. The question is an easy programming question and they allow you to use pseudo code, but won't tell you if you're doing anything wrong. The problem comes with 3 revisions. // An isogram (also known as a "non-pattern word") is a word or phrase without a repeating letter, however spaces and hyphens are allowed to appear multiple times. // Examples of isograms: // - lumberjacks // - background // - six-year-old // Example of non-isograms: // - food: because o repeats // - snowing: because n repeats // - high-five: because "h" is repeated, and "i" is repeated twice in the hyphenated phrase // Input: // "Lorem ipsum dolor sit a-me-t, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." // Output: // ["dolor", "consectetur", "adipiscing", "incididunt", "dolore", "magna", "aliqua"]
avatar

Full Stack Developer

Interviewed at ODAIA

4
Mar 18, 2023

What does the term "clean code" mean to you? 30 minutes of resume questions and past projects. Last 30 minutes of technical/coding part. The question is an easy programming question and they allow you to use pseudo code, but won't tell you if you're doing anything wrong. The problem comes with 3 revisions. // An isogram (also known as a "non-pattern word") is a word or phrase without a repeating letter, however spaces and hyphens are allowed to appear multiple times. // Examples of isograms: // - lumberjacks // - background // - six-year-old // Example of non-isograms: // - food: because o repeats // - snowing: because n repeats // - high-five: because "h" is repeated, and "i" is repeated twice in the hyphenated phrase // Input: // "Lorem ipsum dolor sit a-me-t, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." // Output: // ["dolor", "consectetur", "adipiscing", "incididunt", "dolore", "magna", "aliqua"]

Viewing 901 - 910 interview questions

Glassdoor has 19,456 interview questions and reports from Full stack developer interviews. Prepare for your interview. Get hired. Love your job.