Impact Theory interview question

Can you migrate js code to ts?