Logo

Javascript Questions Set 89:

Quiz Mode

What is the result of the following code?

window.location === document.location

1
2
3
4

Solution:

Which of the following JavaScript variable declarations has both global and local scope?

1
2
3
4

Solution:

Which of the following snippet can be used to go back to a history twice?

1
2
3
4

Solution:

Which property of the datepicker widget is used to display the header of the week on the calendar?

1
2
3
4

Solution:

Which method is used to apply the tooltip widget on the HTML element?

1
2
3
4

Solution:

When is installing a private instance of WebPageTest necessary?

1
2
3
4

Solution:

During the traversal of the execution stack in JavaScript, where does the control go after it reaches the global namespace?

1
2
3
4

Solution:

What is the output of the following code?

 

function A()
{
   var  h = 150;
   var type = (height>=180) ? "tall" : "short";
   return type;
}

1
2
3
4

Solution:

The _______ property of the accordion widget is used to open the panels when we hover over the panels.

1
2
3
4

Solution:

What is the output of the following JavaScript code?


<p id="demo"></p>
<script>
var a = 20;
var b = "30";
var c = a + b;
document.getElementById("demo").innerHTML = c;
</script>

1
2
3
4

Solution: