Desarrollador Web Full Stack Interview Questions

19,129 desarrollador web full stack interview questions shared by candidates

I was given an array of nested JS objects with multiple properties. I needed to write a recursive function to loop throw the array to access each object and verify the value and delete the object if the value was negative. But remember that its a nested object, so its not just the outer array you're looping through
avatar

Senior Full-Stack Developer

Interviewed at LogRocket

4.1
Nov 6, 2024

I was given an array of nested JS objects with multiple properties. I needed to write a recursive function to loop throw the array to access each object and verify the value and delete the object if the value was negative. But remember that its a nested object, so its not just the outer array you're looping through

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'] }

Viewing 871 - 880 interview questions

Glassdoor has 19,129 interview questions and reports from Desarrollador web full stack interviews. Prepare for your interview. Get hired. Love your job.