Set - 2

Question 6 :

What does isNaN function do?

Answer :

Return true if the argument is not a number.


Question 7 :

What is negative infinity?

Answer :

It's a number in JavaScript, derived by dividing negative number by zero.


Question 8 :

In a pop-up browser window, how do you refer to the main browser window that opened it?

Answer :

Use window.opener to refer to the main window from pop-ups.


Question 9 :

What is the data type of variables of in JavaScript?

Answer :

All variables are of object type in JavaScript.


Question 10 :

Methods GET and POST in HTML forms - what's the difference?

Answer :

GET: Parameters are passed in the querystring. Maximum amount of data that can be sent via the GET method is limited to about 2kb.
POST: Parameters are passed in the request body. There is no limit to the amount of data that can be transferred using POST. However, there are limits on the maximum amount of data that can be transferred in one name/value pair.