Domanda di colloquio di Karat

some javascript question .. made use of split().