Logo

Javascript Questions Set 229:

Quiz Mode

What is the maximum number of parameters in the addEventListener() method?

1
2
3
4

Solution:

What happens if the first argument of the open() function is omitted?

1
2
3
4

Solution:

Which is the correct way to invoke a function m of class o that expects two arguments x and y?

1
2
3
4

Solution:

What is a closure?

1
2
3
4

Solution:

___________ are listed inside the parentheses in the function definition.

1
2
3
4

Solution:

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

1
2
3
4

Solution:

  What will happen if a return statement does not have an associated expression? 

1
2
3
4

Solution:

What is the purpose of script loading in web development?

1
2
3
4

Solution:

Which of the following statements about the document object is correct?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

function person()
{
this.name = 'rahul';
}
function obj()
{
obj.call(this)
}
obj.prototype = Object.create(person.prototype);
const app = new obj();
console.log(app.name);

1
2
3
4

Solution: