1. First declare your variable like this
var myV = null;
2.Evaluate if your variable is null. Wrap the executable code with the following statement :
if (myVal== null) {
}
This statement lets you execute the code only if myV is null.
3.Evaluate if your variable is not null. The "!" operator makes the compiler run the statements if your result is false.
if (!yourname) {
}
Checking Null value in JavaScript
1. First declare your variable like this
var myV = null;
2.Evaluate if your variable is null. Wrap...
null value javascript
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users