What is the maximum number of parameters in the addEventListener() method?
What happens if the first argument of the open()
function is omitted?
Which is the correct way to invoke a function m
of class o
that expects two arguments x
and y
?
What is a closure?
___________ are listed inside the parentheses in the function definition.
What is the code to start displaying the time when the document loads?
What will happen if a return statement does not have an associated expression?
What is the purpose of script loading in web development?
Which of the following statements about the document object is correct?
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);