javascript function in if condition code example
Example: if javascript
if (a > 0) {
result = 'positive';
} else {
result = 'NOT positive';
}
if (a > 0) {
result = 'positive';
} else {
result = 'NOT positive';
}