Calsoft interview question

basic of JavaScript, Typescript, Angular, arrays, objects