Q4) What is the definition of global variables? In what way, these variables are declared?
Q5) What is the definition of the prompt box?
Ans. There are two basic groups of data types -
Reference type- These are complex types of data which can mainly include dates and strings.
Primitive type- These are the types of data that include numbers
Q7) Name the problems that are associated with the use of global variables?
Ans. Even though global variables are easy to use, these have some shortfalls. While using this type of variables, the problem of clashing of the variable names of different global and local scope occurs. The code that is often relied on the global variable also gets difficult to be tested and debugged.
Ans. If no value has been given to the variable then, it is called a null object (or) null value.
Q11) Which property is used to detect the operating system in cloud machine?
Ans. Navigator. platform String property is used to detect issues of the operating system in a cloud.
Q13) What is the Different between Null and Undefined?
Ans. Both null and undefined have an empty value, but the difference between these two is:
In undefined case, we don't assign a value for the variable.
In the null case, we assign a zero value to the variable.
Ans. Two ways are available to read and write a file, they are:
Webpages and Active X objects