Explanation:Undefined value means the
1.Variable used in the code doesn't exist
2.Variable is not assigned to any value
3.Property doesn't exist
2. Confirm and
1.Content is replaced everywhere
2.We cannot use like "appending to innerHTML"
3.Even if you use +=like "innerHTML = innerHTML + 'html'" still the old content is replaced by html
4.The entire innerHTML content is re-parsed and build into elements, therefore its much slower
5.The innerHTML does not provide validation and therefore we can potentially insert valid and broken HTML in the document and break it.
Explanation: They are as –
Primitive types are number and Boolean data types. Reference types are more complex types like strings and dates.
Explanation:There are three types of errors:
Load time errors: Load-time errors are perhaps the most common and are generally caused by problems in syntax.
Run time errors:A runtime error is a program error that occurs while the program is running.
Logical Errors: A logic error (or logical error) is a mistake in a program's source code that results in incorrect or unexpected behavior.
1. First-class functions
2. Nested functions
Explanation:Screen objects are used to read the information from the client's screen. The properties of screen objects are -
Explanation: True is the answer
29. Find output of below code
var a = '20';
var b = a = 30;
Explanation: No explanation.
var a = 10;
var b = 0;
Also check :