MCQ
Single Best Answer
Not Set
QThe terms "let" and "var" are:
ID: #4850
Basic JavaScript MCQ
275 views
Question Info
#4850Q ID
Not SetDifficulty
Basic JavaScript MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option B
Explanation
The let and var keywords are known as declaration statements or variable declarations.
A declaration statement is a statement in JavaScript that declares a variable or function.
The let and var keywords are used to declare variables in JavaScript.
Here are some examples of declaration statements:
let x; // Declares a variable x with the let keyword
var y; // Declares a variable y with the var keyword
function foo() { // Declares a function foo with the function keyword
// Function body
}
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic