Logo

Javascript Questions Set 82:

Quiz Mode

How many properties does a prototype object have in JavaScript?

1
2
3
4

Solution:

Which of the following is a descendant operator?

1
2
3
4

Solution:

What is the alternate name for JavaScriptCore used by Safari?

1
2
3
4

Solution:

What is the main difference between localStorage and sessionStorage?

1
2
3
4

Solution:

Which property is used to open the second panel by default?

1
2
3
4

Solution:

Which jQuery method will be used to hide only the first 'div' element on the webpage?

1
2
3
4

Solution:

When will the window property in JavaScript be used?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

function showcommentform()

{

var data = "new text";

document.getElementById('mylocation').innerHTML = data;

}

1
2
3
4

Solution:

 The enumeration order becomes implementation dependent and non-interoperable if ___________ 

1
2
3
4

Solution:

The correct syntax to change the content of the HTML element with id "name" is:

<h1 id="name">Some Text</h1>

1
2
3
4

Solution: