Logo

Javascript Questions Set 175:

Quiz Mode

Find the output of the following code:


<script>

var x="Hello World!!!";

x[6]='w';

document.write(x[6]);

</script>

Solution:

What function can be used to find the last index of a character in a string?

1
2
3
4

Solution:

Which of the following properties are associated with the Response event?

1
2
3
4

Solution:

What happens if you specify an absolute URL in the Worker constructor?

1
2
3
4

Solution:

What is the output of the following code?


<script>

var x = [3, 4, 82, 6];

x.unshift(67);

document.write(x);


</script>

1
2
3
4

Solution:

 Which is a more formal way of importing packages and classes as JavaScript objects? 

1
2
3
4

Solution:

Which of the following Array object methods applies a function simultaneously against two values of the array (right-to-left) to reduce it to a single value?

1
2
3
4

Solution:

Which object defines methods that allow complete control over page content?

1
2
3
4

Solution:

 What is the JavaScript code snippet to find all container elements with class “abekus”? 

1
2
3
4

Solution:

What is the JavaScript code snippet to find all container elements with the class 'reveal'?

1
2
3
4

Solution: