Question Bank

1085 approved questions from the community

What are default parameters?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

What does console.log() do?

EASY
SINGLE CHOICE
20s
Javascript
by Mohamed

What does localStorage do?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

What is the difference between localStorage and sessionStorage?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

What does Array.prototype.push() return?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

What does Array.prototype.pop() do?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

What does Array.prototype.shift() do?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

What does Array.prototype.unshift() do?

EASY
SINGLE CHOICE
25s
Javascript
by Mohamed

Math.random() returns a number between 0 (inclusive) and 1 (exclusive).

EASY
TRUE FALSE
20s
Javascript
by Mohamed

Array.prototype.includes() is case-sensitive for strings.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

String methods like toUpperCase() modify the original string.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

The map() method modifies the original array.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

Function declarations are hoisted with their full definition.

EASY
TRUE FALSE
25s
Javascript
by Mohamed

The querySelector() method returns all matching elements.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

What is the DOM?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

async/await makes asynchronous code look more like synchronous code.

EASY
TRUE FALSE
25s
Javascript
by Mohamed

Object.freeze() makes an object completely immutable including nested objects.

EASY
TRUE FALSE
25s
Javascript
by Mohamed

The const keyword prevents any changes to the variable's value.

EASY
TRUE FALSE
25s
Javascript
by Mohamed

localStorage data persists even after the browser is closed.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

Arrow functions in JavaScript have their own 'this' binding.

EASY
TRUE FALSE
25s
Javascript
by Mohamed
PreviousPage 40 of 55Next