Logo

Javascript Questions Set 190:

Quiz Mode

How many states does a Promise have?

1
2
3
4

Solution:

To which object does the location property belong?

1
2
3
4

Solution:

Which of the following JavaScript logging tools is standalone?

1
2
3
4

Solution:

Which function can be used to create a Blob URL?

1
2
3
4

Solution:

Which jQuery method is used to add or remove a CSS class from an element?

1
2
3
4

Solution:

Advantages of Redux are:

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

const obj1 = {
  a: 10,
  b: 15,
  c: 18
};
const obj2 = Object.assign({c: 7, d: 1}, obj1);
console.log(obj2.c, obj2.d);

1
2
3
4

Solution:

What is zero delay in JavaScript?

1
2
3
4

Solution:

 

What will be the output of the following JavaScript code?

<p id="demo"></p>
<script>
var arr = ["1", "1", "2", "1"];
var a = arr.lastIndexOf("1");
document.getElementById("demo").innerHTML = (a + 1);
</script>

1
2
3
4

Solution:

  What is a block statement in JavaScript? 

1
2
3
4

Solution: