-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Immanuel Bendahan edited this page Sep 30, 2017
·
4 revisions

This version is called Amur Tiger
isset(object);What does it do?
isset() is used to check if a variable is set.
How to use? (example)
var x = 10;
// x is set
if (isset(x)) {
alert('x is set!');
} else {
alert('x is NOT set!');
}
// y is NOT set
if (isset(y)) {
alert('y is set!');
} else {
alert('y is NOT set!');
}Explanation
isset(object); will give an output either
trueor
falseSo if the object (here x and y) is set, isset() will give an output of true. When not set, it will give an output of false.
