Looking for WPR271-Web Programming 271 (2026-04-06 to 2026-04-24) test answers and solutions? Browse our comprehensive collection of verified answers for WPR271-Web Programming 271 (2026-04-06 to 2026-04-24) at connect.belgiumcampus.ac.za.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What is the correct syntax to create an empty object in JavaScript?
How can you create a new object using an existing object as a prototype?
What is a property in a JavaScript object?
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.
Which type of variable declaration in JavaScript creates a variable accessible only within the function or block statement where it is declared?
A. Global variable
B. Local variable
C. Static variable
D. Dynamic variable