2. Check If Positive

Given an integer number. Write a function bool IsPositive(int number) that returns true if the number is positive, and false otherwise.
Example 1
Input: number = -3
Output: false
Explanation: -3 is less than 0, so it is a negative number
Example 2
Input: number = 5
Output: true
Explanation: 5 is greater than 0, so it is a positive number
Example 3
Input: number = 0
Output: false
Explanation: 0 is not a positive number
easy
JavaScript
Loading...
Line 1, Char 1