✅ 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.