1) Define Undeclared and Undefined Variables?
Undeclared variable are defined as these variable is neither defined nor exist in the program.
If program calls this variable then it causes Runtime error.
Undefined variable are those which are declared but not define i.e. No values is assigned to it.
If program calls undefined variable then it returns an undefined number.
2) What does Prompt Box do?
Prompt Box is similar to the alert box but it prompts i.e. label and box is provided to user for input.
3) Diffrentiate between Session State and View State?
In session state for an user specific data can be accessed for all the pages of web application whereas View state is only for a page in a session.
4) What is the difference between '==' and '===' operator?
EqualsTo operator(==) only checks the values of a variable is same or not.
Strictly EqualsTo operator(===) it not only checks value of variable but also datatype same or not.
eg. 5==5 o/p True
'a'==="a" o/p False
5) Describe parseInt function?
ParseInt() Function is designed for type conversion i.e. convert number between different base.
eg. parseInt ("F",16) //here F of base 16 converted to int.
6) How is void(0) differ from void()?
Void(0) does not allow the page to refresh and '0' parameter is passed also if another method is called then page is not refreshed.
Datatype is grouped into 2 groups
8) Describe Blur Function.
Blur function is used to remove the focus from particular object.
There are 3 types of error
Push method is implemented in the end of array. It allows to add one or more elements. We can also add multiple element by passing multiple argument.
13) What is the use of isNaN function?
isNaN function is used to check if the argument is not a number then returns true else vice versa.
A closure is a function defined inside the parent function. It has access to variables that are declared and defined in the parent function scope.
The closure function has access to variables in three scopes:
Screen object helps in getting the information of the user's screen. We can get the width, height, colorDepth etc. of the user's screen.
22) What is Anonymous Functions?
A function without a name is an anonymous function. It is stored inside a variable name. Thus, the invocation happens , using the variable name.
InnerHTML property can be used to modify an HTML document. It is used to change the page's content without refreshing the page. It makes website feel quicker and more responsive to user input.
26) Enlist main component of Cookies.
There are the following types of Popup Boxes in JavScript, which are:
In this technique we write the series of statements, one after the other like a chain. The Chaining Method is also known as Cascading, because it repeatedly calls one method on an object, forming a chain/continuous line of the code.