Logo

Javascript Questions Set 71:

Quiz Mode

What are events in React?

1
2
3
4

Solution:

Which of the following best describes JavaScript?

1
2
3
4

Solution:

Which method/operator is used to check whether one object is the prototype of another object?

1
2
3
4

Solution:

Which of the following JavaScript logging frameworks allows toggling the logging plane?

1
2
3
4

Solution:

Which jQuery UI method is used to apply the sortable widget on the HTML element?

1
2
3
4

Solution:

An expression that can legally appear on the left side of an assignment expression is called a(n)

1
2
3
4

Solution:

Which is the event handler method used to invoke when uncaught JavaScript exceptions occur?

1
2
3
4

Solution:

What is the output of the following code?


<script>

var x = 5,

y = 6,

z = "Abekus";

window.alert(z + x + y);

</script>

1
2
3
4
5

Solution:

What is the output of the following code?


 <p id="demo"></p>
<script>
var a = 63.786;
document.getElementById("demo").innerHTML = a.toFixed(0);
</script> 

1
2
3
4

Solution:

Predict the output of the following JavaScript code:


function f() {
console.log("foo");
setTimeout(g, 0);
console.log("baz");
h();
}


function g() {
console.log("bar");
}


function h() {
console.log("blix");
}


f();

1
2
3
4

Solution: