Spineor interview question

Basic React and Js questions. Quite easy.