KyaPoocha.com

Huge Collection of Interview Questions


‘JavaScript’ - KyaPoocha.com

What are undefined and undeclared variables? 

Undeclared variables are those that are not declared in the program (do not exist at all),trying to read their values gives runtime error.But if undeclared variables... Read more »

Does javascript have the concept level scope? 

No.Javascript does not have block level scope,all the variables declared inside a function possess the same level of scope unlike c,c++,java.  Read more »

What is variable typing in javascript? 

It is perfectly legal to assign a number to a variable and then assign a string to the same variable as follows example i = 10; i = “string”; This is... Read more »

What is the difference between undefined value and null value? 

(i)Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword called null (ii)typeof undefined variable... Read more »

What is JavaScript? 

JavaScript is a platform-independent,event-driven, interpreted client-side scripting and programming language developed by Netscape Communications Corp. and Sun... Read more »

How to read and write a file using javascript? 

I/O operations like reading or writing a file is not possible with client-side javascript. However , this can be done by coding a Java applet that reads files for... Read more »

How to detect the operating system on the client machine? 

In order to detect the operating system on the client machine, the navigator.appVersion string (property) should be used.  Read more »

Where are cookies actually stored on the hard disk? 

This depends on the user’s browser and OS. In the case of Netscape with Windows OS,all the cookies are stored in a single file called cookies.txt c:Program... Read more »

What can javascript programs do? 

Generation of HTML pages on-the-fly without accessing the Web server. The user can be given control over the browser like User input validation Simple computations... Read more »

How to set a HTML document’s background color? 

document.bgcolor property can be set to any appropriate color.  Read more »

What does the “Access is Denied” IE error mean? 

The “Access Denied” error in any browser is due to the following reason. A javascript in one window or frame is tries to access another window or frame... Read more »

Is a javascript script faster than an ASP script? 

Yes.Since javascript is a client-side script it does require the web server’s help for its computation,so it is always faster than any server-side script like... Read more »

Are Java and JavaScript the Same? 

No.java and javascript are two different languages. Java is a powerful object - oriented programming language like C++,C whereas Javascript is a client-side scripting... Read more »

How to embed javascript in a web page? 

javascript code can be embedded in a web page between tags  Read more »

How to access an external javascript file that is stored externally and not embedded? 

This can be achieved by using the following tag between head tags or between body tags. where abc.js is the external javscript file to be accessed.  Read more »

Page 3 of 8«12345»...Last »