AMI interview question

What is scope in javascript?