Toddle interview question

Some questions on react and javascript