Deriv.com interview question

JavaScript assignment in timed period