In order to detect the operating system on the client machine, the navigator.appVersionstring (property) should be used.
Web Development Interview Questions
It is perfectly legal to assign a number to a variable and then assign a string to the same variable as followsexample i = 10; i = “string”; This is called variable typing
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 Files\Netscape\Users\username\cookies.txt In the case of IE,each cookie is stored in a separate file namely email@example.com. c:\Windows\Cookies\username@Website.txt
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 can be performed on the client’s machine The user’s browser, OS, screen size, etc. can be detected Date and Time Handling.
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 are assigned then implicit declaration is done . Undefined variables are those that are not assigned any value but are declared in the program.Trying to read such variables gives …
Document.bgcolor property can be set to any appropriate color.
=== is strict equality operator ,it returns true only when the two operands are having the same value without any type conversion.
Two one sentence summaries: a closure is the local variables for a function – kept alive after the function has returned or a closure is a stack-frame which is not deallocated when the function returns. A closure takes place when a function creates an environment that binds local variables to it in such a way …