Logo

Javascript Questions Set 131:

Quiz Mode

What is the default value of the async attribute?

1
2
3
4

Solution:

The this keyword refers to the object it belongs to.

1
2
3
4

Solution:

Which of the following best describes the nature of cookies?

1
2
3
4

Solution:

What does DOM stand for?

1
2
3
4

Solution:

How can you use a string as an index to access properties?

1
2
3

Solution:

Which component creates a history object that enables you to listen for location changes?

1
2
3
4

Solution:

What is the output of the following code?


var a = 10;
var b = 0;
document.write(a/b)

1
2
3
4

Solution:

Which of the following are ways to benchmark code?

1
2
3
4

Solution:

Which of the following statements about the "use strict" directive in JavaScript is true?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

<p id="demo"></p>
<script>
var numbers1 = [4, 9];
var numbers2 = numbers1.map(myFunction);
document.getElementById("demo").innerHTML = numbers2;
function myFunction(value)
{
 return value * 2;
}
</script>

1
2
3
4

Solution: