Logo

Javascript Questions Set 53:

Quiz Mode

Which property is used to specify the key code when a key is pressed?

1
2
3
4

Solution:

What is the significance of the JavaScript logging library loglevel?

1
2
3
4

Solution:

What is Microsoft's own proprietary client-side storage?

1
2
3
4

Solution:

What is the output of the following code?

const num = [1,2,3,1,2,3,1]

const res = num.lastIndexOf(1)

console.log(res)

1
2
3
4

Solution:

In the given HTML code, the this keyword refers to:

1
2
3
4

Solution:

What is the vulnerability of XHR (XMLHttpRequest) communications?

1
2
3
4

Solution:

What is the purpose of the 'this' keyword in JavaScript?

1
2
3
4

Solution:

What does the pop() method do in an array?

1
2
3
4

Solution:

The Math.random() function returns _____

1
2
3
4

Solution:

Which of the following JavaScript syntax is correct to set the innerHTML of an HTML element?

1
2
3
4

Solution: