IBM interview question

Basics react and javascript questions