Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
How to determine if a variable is 'undefined' or 'null'?
On getting the result of the following, you can find whether a variable is null or undefined. If the result is “false”, it means the variable is null and undefined.
Here, the variable results in “True” −
<html>
<body>
<script>
var age = 10;
if(age) {
document.write("True");
} else {
document.write("False");
}
</script>
</body>
</html> Advertisements
