Question d’entretien chez SupplyNote

Initially, the interviewer asked some javascript output questions then hoisting in javascript. Then he asked to write code for flattening of objects in javascript recursively and also write the code for javascript closure.