logo

Crowdly

Browser

Add to Chrome

Which of the following statements about global and local variables in JavaScript...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Which of the following statements about global and local variables in JavaScript is correct?

A. Global variables are declared within function or block statements.

B. Local variables are accessible to any other code in the current document.

C. Block-scoped variables declared within a function are available outside that function.

D. Global variables declared outside of any function or block statement are available to all functions defined in that JS file.

0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on connect.belgiumcampus.ac.za?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome