Ciena Interview Question

why we need scopes in javascript?