Solve programming problems in Javascript or TypeScript!
previous ~ next ~ JS Syntax HelpWarmup-2
--arrayCount9
Given an array of ints, return the number of 9's in the array.
Examples
- arrayCount9([1,2,9]) → 1
- arrayCount9([1,9,9]) → 2
- arrayCount9([1,9,9,3,9]) → 3
(ctrl-enter)
xxxxxxxxxx
1
function arrayCount9(nums){
2
3
}