Pergunta de entrevista da empresa Tatvasoft

explain closure in context of js ? what would you choose between Mern stack and java stack with their pros and cons ?