superU interview question

TS vs JS, React vs Next, When to use which database etc.