This story was written by: @sirius93. Learn more about this writer by checking @sirius93's about page,
and for more stories, please visit hackernoon.com.
I am sure you have been asked this question in one of the interviews. It looks simple at first. But the interviewer is actually checking whether you understand recursion, objects, and how JavaScript treats arrays. So, basically, you are given a nested object, and you are expected to simplify it by removing the nesting and printing it in a non-nested format.
Podden och tillhörande omslagsbild på den här sidan tillhör
HackerNoon. Innehållet i podden är skapat av HackerNoon och inte av,
eller tillsammans med, Poddtoppen.