var arr =[123,456,789,147,258,369]var num = 0function add(){for(var i=0;iif(arr[i]>0 && arr[i]%2 != 0){num += arr[i]console.log(num)}}}add()