Pergunta de entrevista da empresa GlobalLogic

What is destructuring in javascript & what is pure function?