Logo

Javascript Questions Set 97:

Quiz Mode

Which framework focuses on DOM and Ajax utilities?

1
2
3
4

Solution:

Which HTML element does the location attribute belong to?

1
2
3
4

Solution:

What datatype does the async attribute optionally accept?

1
2
3
4

Solution:

Examples of React Router components are:

1
2
3
4

Solution:

  What is the code required to delete all “weight” tags? 

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

document.writeln("
screen.width: "+screen.width);

1
2
3
4

Solution:

Which method is used to replace the current history state instead of adding a new state to the browsing history?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?


var fruits=["apple","mango","banana"];  

var ans=fruits.shift();  

document.writeln(ans);


1
2
3
4

Solution:

What is the output of the following code?


<script>

var x = [1, 2, 3, 4, 5, 6, 7, 8, 9];

var y = x[-1];

var z = x[x.length - 1];

document.write(y + "
" + z);

</script>

1
2
3
4
5

Solution:

How does Virtual DOM work?

1
2
3
4

Solution: