InfoStride interview question

Basic react and js questions