Logo

Javascript Questions Set 22:

Quiz Mode

JavaScript is a ________ language.

1
2
3
4

Solution:

JavaScript is an ________ language?

1
2
3
4

Solution:

What will be the output?

var arr = [1, 2, 5, 10, 20]; var result = arr.reduce((a, i) => {  return a + i; }); console.log(result);

Solution:

What is the default value of the useCapture parameter in event listeners?

1
2
3
4

Solution:

Which statement will be equivalent to the following statement?


var o = new Object();


1
2
3
4

Solution:

The client-side JavaScript asynchronous programming model contains:

1
2
3
4

Solution:

What is the code to start displaying the time when the document loads?

1
2
3
4

Solution:

Which of the following event does client-side Javascript asynchronous programming model contains?

1
2
3
4

Solution:

What will be the output?

(function(){ var a = b = 3; })(); console.log("a defined? " + (typeof a !== 'undefined')); console.log("b defined? " + (typeof b !== 'undefined'));

1
2
3
4

Solution:

Which of the following statements about callbacks is correct?

1
2
3
4

Solution: