How typeof operator works?
document.cookie = "key1 = value1; key2 = value2; expires = date";
Here expires attribute is option. If you provide this attribute with a valid date or time then cookie will expire at the given date or time and after that cookies' value will not be accessible.
The onerror event handler provides three pieces of information to identify the exact nature of the error −
What are undeclared and undefined variables?
'This’ keyword refers to the object from where it was called.
What would be the result of 3+2+”7″?
Since 3 and 2 are integers, they will be added numerically. And since 7 is a string, its concatenation will be done. So the result would be 57
The NULL value is used to represent no value or no object. It implies no object or null string, no valid boolean value, no number and no array object.
What is the difference between an alert box and a confirmation box?
What is break and continue statements?
They are as –
Primitive types are number and Boolean data types. Reference types are more complex types like strings and dates.