Logo

Javascript Questions Set 197:

Quiz Mode

Which method is used for registering event handlers?

1
2
3
4

Solution:

 The ______ method replaces a specified value with another value in a string 

1
2
3

Solution:

Which of the following keyboard modifier keys are not set to true when held down?

1
2
3
4

Solution:

What is the function used to remove all handlers for a named event?

1
2
3
4

Solution:

The language is commonly used to _____________ 

1
2
3
4

Solution:

Which property of the datepicker widget is used to display the dropdown list so the user can select the month?

1
2
3
4

Solution:

What are the three important manipulations done in a for loop on a loop variable?

1
2
3
4

Solution:

 What is the JavaScript code snippet to change the class and let the stylesheet specify the details? 

1
2
3
4

Solution:

What will be the content of the 'numbers' array after the following code is executed?

const length = 4;

const numbers = [];

for (var i = 0; i < length; i++) {

  numbers.push(i + 1);

}

numbers; // => ???

1
2
3
4

Solution:

 What will be the step of the interpreter in a jump statement when an exception is thrown? 

1
2
3
4

Solution: