Logo

Javascript Questions Set 164:

Quiz Mode

______() method is used to add and remove the elements of an array.

Solution:

What is the vendor-neutral synonym for navigator?

1
2
3
4

Solution:

Which game in the Perl culture requires extremely minified source code?

1
2
3
4

Solution:

 The snippet that has to be used to check if “a” is not equal to “null” is _________ 

1
2
3
4

Solution:

What does a Node object represent in the Document Object Model (DOM)?

1
2
3
4

Solution:

Which string method is used to remove whitespace characters from the start and end of a string?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?


<p id="demo"></p>

<script>

var x = 10;

x *= 5;

document.getElementById("demo").innerHTML = x;

</script>

1
2
3
4

Solution:

What is the value returned by the find() method in the following code?

const event = [1,2,3,4,5]

const result = event.find(function(e) {

return e > 3;

})

console.log(result)

1
2
3
4

Solution:

What is the output of the following code?


<script>

var a = [5, 24, 46, 7, 18, 9];

document.write(a.sort());

</script>

1
2
3
4
5

Solution:

Which of the following are correct ways of selecting HTML elements?

1
2
3
4

Solution: