K
Q. The “var” and “function” are __________.
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
Q. Which one of the given options can be considered as the correct output of the following code?
Q. How many parameters does the API accept?
Q. What will happen if the radix parameter of the parseInt() function is omitted?
Q. Which method of the iterable object returns an iterator object for the collection?
Q. What will happen if we execute the following code of JavaScript?
Q. By which javascript code is used
Q. Consider the following code snippet : will this code work?
Discusssion
Login to discuss.