Question Bank

1085 approved questions from the community

Which of the following are valid ways to create objects in JavaScript? (Select all that apply)

EASY
MULTIPLE CHOICE
40s
Javascript
by Mohamed

Which of the following are truthy values in JavaScript? (Select all that apply)

EASY
MULTIPLE CHOICE
35s
Javascript
by Mohamed

Which array methods do NOT mutate the original array? (Select all that apply)

EASY
MULTIPLE CHOICE
40s
Javascript
by Mohamed

Which are valid ways to iterate over an object's properties? (Select all that apply)

EASY
MULTIPLE CHOICE
40s
Javascript
by Mohamed

Which are falsy values in JavaScript? (Select all that apply)

EASY
MULTIPLE CHOICE
35s
Javascript
by Mohamed

Which are benefits of template literals? (Select all that apply)

EASY
MULTIPLE CHOICE
35s
Javascript
by Mohamed

Which are valid console methods? (Select all that apply)

EASY
MULTIPLE CHOICE
30s
Javascript
by Mohamed

Array.prototype.splice() modifies the original array.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

Array.prototype.slice() modifies the original array.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

Cookies can be accessed by JavaScript using document.cookie.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

What is the difference between .call() and .apply()?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

The finally block executes regardless of whether an error occurs.

EASY
TRUE FALSE
25s
Javascript
by Mohamed

The rest parameter (...) collects remaining arguments into an array.

EASY
TRUE FALSE
25s
Javascript
by Mohamed

Set automatically removes duplicate values.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

What is the difference between == and === in JavaScript?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

What does the event loop do in JavaScript?

EASY
SINGLE CHOICE
40s
Javascript
by Mohamed

What does 'new' keyword do when used with a function?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

What is the difference between synchronous and asynchronous functions?

EASY
SINGLE CHOICE
35s
Javascript
by Mohamed

What does AJAX stand for?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

What is the spread operator used for?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed
PreviousPage 38 of 55Next