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 »
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 »
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 »
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 »
(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 »
JavaScript is a platform-independent,event-driven, interpreted client-side scripting and programming language developed by Netscape Communications Corp. and Sun... Read more »
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 »
In order to detect the operating system on the client machine, the navigator.appVersion string (property) should be used. Read more »
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 »
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 »
document.bgcolor property can be set to any appropriate color. Read more »
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 »
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 »
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 »
javascript code can be embedded in a web page between tags Read more »
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 »