Impact Analytics interview question

Moderate and basic js questions mostly from string,arrays and objects