function solution(arr){
let answer = [];
let sum = 0, min = Mumber.MAA_SAFE_INTEGER;
for(let x of arr) {
if(x % 2 === 1) {
sum += x;
if(x < min) {
min = x;
}
}
answer.push(sum);
answer.push(min);
}
return answer;
}
arr=[12, 77, 38, 41, 53, 92, 85];
console.log(solution(arr));
function(day, arr) {
let answer = 0;
for (let x of arr){
if (x % 10 === day) {
answer++;
}
return answer;
}
arr = [25, 23, 11, 47, 53, 17, 33];
console.log(soution(3,arr));