Logo

Javascript Questions Set 117:

Quiz Mode

Which of the following is a reverse of Ajax?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

1
2
3
4

Solution:

What is the purpose of the adoptNode() method?

1
2
3
4

Solution:

 

<p>The result of adding "6" + 8 + 9 is </p>
<p id="my_demo"></p>
<script>
x = "6" + 8 + 9;
document.getElementById("my_demo").innerHTML = x;
</script>

1
2
3
4

Solution:

What is the more formal way of importing packages and classes as JavaScript objects?

1
2
3
4

Solution:

Which of the following is the correct syntax for getting the values of the 'arr' array using the iterator 'eArr'?

1
2
3
4

Solution:

What is the correct order of the Minify process?

1
2
3
4

Solution:

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

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

<p id="demo"></p>
<script>
var numbers = [45, 4, 9, 16, 25];
var sum = numbers.reduce(myFunction);
document.getElementById("demo").innerHTML = sum;
function myFunction(total, value)
{
return total + value;
}
</script>

1
2
3
4

Solution: