## Problem Statement

given a number, write a JavaScript program to check if the number is positive

## Solution

a number is positive if it is greater than `0`

. to check if given number is positive, we have to check if it is greater than `0`

. we can use comparison greater than operator to check if given number is greater than `0`

## Program

1. given number is `n`

. check if `n`

is positive

```
let n = 4;
if ( n > 0 ) {
console.log('positive number');
} else {
console.log('not a positive number');
}
```

we have used the condition in if-else statement

2. negative number in `n`

```
let n = -3;
if ( n > 0 ) {
console.log('positive number');
} else {
console.log('not a positive number');
}
```