LTM Limited interview question

Basic questions on react and javascript