Logo

Javascript Questions Set 126:

Quiz Mode

Which property is used to manipulate cookies?

1
2
3
4

Solution:

The _____ will be invoked to create a new worker.

1
2
3
4

Solution:

Which Node object property returns the node immediately before a node?

1
2
3
4

Solution:

Which of the following is the child(ren) of the node type EntityReference?

1
2
3
4

Solution:

What is not the purpose of the location parameter?

1
2
3
4

Solution:

What is the output of the following JavaScript code?


var x = 13;

var y = 15;

document.write("The result is " + x + y);

1
2
3
4

Solution:

This is the phase when a React component is about to start its life cycle and be rendered to the DOM for the first time. What is this phase called?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

<p id="demo2"></p>
<script>
var arr = ["one", "two", "three"];
arr.shift();
document.getElementById("demo2").innerHTML = arr;
</script>

1
2
3
4

Solution:

Which of the following computations is correct to calculate the time taken for a page to load once the page is received from the server?

1
2
3
4

Solution:

What is the purpose of the JavaScript method localeCompare()?

1
2
3
4

Solution: