SAP Interview Question

First round was node.js based questions. One question was find the output of the program, and the program had setTimeout cascaded into each other. Second question was simple object handling, they provided menu for a restaurant and said I need to collect all similar items, and arrange them in increasing order of price.

Interview Answer

Anonymous

Sep 18, 2025

I provided the answer to the first question based on my understanding of which function would timeout first and print. I think it was right because I was moved to next round, Second question was simply looping over each key value in the object and then storing it back in their required format, I used map function for this.