Revolut interview question

Javascript scope and context