Ciena interview question

why we need scopes in javascript?