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

Answer & Solution

Answer: Option A
Solution:
The 'new' keyword is used to create an instance of an array or any other object in JavaScript.
Related Questions on Average

Which keyword is used to declare variables in JavaScript?

A). var

B). let

C). const

D). variable

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

A). continue

B). break

C). return

D). exit

What does the 'typeof' keyword return for a number?

A). number

B). string

C). object

D). undefined

What does the 'return' keyword do in JavaScript?

A). Exits a loop or switch statement

B). Continues to the next iteration in a loop

C). Returns a value from a function

D). Skips the current iteration in a loop

Which keyword is used to declare constants in JavaScript?

A). const

B). let

C). var

D). constant

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

A). To declare constants

B). To declare block-scoped variables

C). To declare functions

D). To perform logical operations

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

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

A). delete

B). remove

C). erase

D). discard

What does the 'break' keyword do in JavaScript?

A). Exits a loop or switch statement

B). Continues to the next iteration in a loop

C). Returns a value from a function

D). Skips the current iteration in a loop

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

A). typeof

B). type

C). typeOf

D). instanceof