Amount of positive number in an Array
Given an array, return the number of the positive numbers.
Sample Code:
function countPos(arr) {
// Enter your logic here...
}
Examples:
Input: [1,2,3,-4,-5,-6]
Output: 3
Explanation: 3 positive numbers to be found in the array.
Input: ['1',-2,'3',-4,'5',-6]
Output: 3
Explanation: Values were converted into the same type before comparison. So, there are 3 positive numbers.