Logo

Javascript Questions Set 150:

Quiz Mode

Which operator is used to test if a particular property exists or not? 

1
2
3
4

Solution:

The function stops it execution when it encounters the 

1
2
3
4

Solution:

Which event is generated when data changes in a control, such as a text field?

1
2
3
4

Solution:

How do the client and server communicate using the WebSocket protocol?

1
2
3
4

Solution:

Which method is used to append one HTML element to another HTML element?

1
2
3
4

Solution:

What is the use of the * (asterisk) selector in jQuery?

1
2
3
4

Solution:

When the 'end' event is fired on a stream to indicate that no more data will arrive, which function is called?

1
2
3
4

Solution:

Which of the following statements about the Document Object Model (DOM) is true?

1
2
3
4

Solution:

To open a dialog box each time an error occurs, which of the following is added to prefs.js?

1
2
3
4

Solution:

What will be the output of the following JavaScript code?

<p id="demo"></p>
<script>
function myFunction()
{
  var patt = new RegExp("World", "g");
  var res = patt.toString();
  document.getElementById("demo").innerHTML = res;
}
</script>

1
2
3
4

Solution: