if javascript
if (a > 0) {
result = 'positive';
} else {
result = 'NOT positive';
}
if javascript
if (a > 0) {
result = 'positive';
} else {
result = 'NOT positive';
}
javascript conditional evaluation
if ( expression )
Here are some expressions and their result
Undefined: false
Null: false
Boolean: the result equals the input argument (no conversion)
Number: false if the argument is +0, -0, or NaN; otherwise true
String: false if the argument is an empty string (length = 0);
otherwise true
Object: true
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us