A
Q. The “var” and “function” are __________.
- Correct Answer - Option(D)
- Views: 32
- Filed under category JavaScript
- Hashtags:
A
var is used to declare variables.
Both are declaration statements because they define variables and functions before execution.
Example:
var x = 10; // Variable declaration
function greet() { // Function declaration
console.log("Hello!");
}
Why Not Other Options?
You must be Logged in to update hint/solution
Be the first to start discuss.
Discusssion
Login to discuss.