Q
Which keyword is used to declare variables in JavaScript?

Answer & Solution

Answer: Option A
Solution:
The 'var' keyword is used to declare variables in JavaScript.
Related Questions on Average

Which keyword is used to determine the type of a variable or an expression?

A). typeof

B). type

C). typeOf

D). instanceof

What is the purpose of the 'instanceof' keyword in JavaScript?

A). To determine if an object is an instance of a particular class or constructor

B). To check if an object is empty

C). To check if a variable is undefined

D). To compare two objects

What does the 'this' keyword refer to in JavaScript?

A). The object on which a method is called

B). The global object

C). The parent function

D). The current file

What is the purpose of the 'if' keyword in JavaScript?

A). To perform conditional execution

B). To declare functions

C). To create loops

D). To skip iterations in a loop

Which keyword is used to create a loop with multiple cases in JavaScript?

A). switch

B). for

C). while

D). if

Which keyword is used to create a new instance of an object?

A). new

B). instanceof

C). this

D). create

Which keyword is used to remove a property from an object?

A). delete

B). remove

C). erase

D). discard

Which keyword is used to skip the current iteration in a loop?

A). continue

B). break

C). return

D). exit

Which keyword is used to create an instance of an array in JavaScript?

A). new

B). instanceof

C). this

D). create

Which keyword is used to declare constants in JavaScript?

A). const

B). let

C). var

D). constant