Logo

Javascript Questions Set 9:

Quiz Mode

Selectors in jQuery starts with __().

Solution:

Which function is a synonym for on()?

1
2
3
4

Solution:

What is the result of the expression Number("1") - 1 == 0?

1
2
3
4

Solution:

Redux maintains the state of an entire application in a single immutable state tree.

1
2
3
4

Solution:

Will the following JavaScript code work?


var squareOfTen = (function(x) {return x*x;}(10));

1
2
3
4

Solution:

What is the purpose of the timing property in the window.performance object?

1
2
3
4

Solution:

What will be the output?

var object = {     A: 1,     B: 2,     C: 3,     D: 4,      } object.E = function(){console.log(object.A)}; console.log(object.E());

1
2
3
4

Solution:

When a user views a web page that contains JavaScript, which machine actually executes the script?

1
2
3
4

Solution:

What is the purpose of the PerformanceTiming.navigationStart property?

1
2
3
4

Solution:

Predict the output of the following code:


(function() {

 console.log('this is the start');

 setTimeout(function cb() {
   console.log('Callback 1: this is a message from the callback');
 });

 console.log('this is just a message');

 setTimeout(function cb1() {
   console.log('Callback 2: this is a message from the callback');
 }, 0);

 console.log('this is the end');

})();

1
2
3
4

Solution: