0
JavaScript
Fill in the blanks to declare an arrow function that takes an array and prints the odd elements. const printOdds = (arr) { .forEach( => { if (el % 2 != 0) console.log(el); }); }
2 Réponses
+ 1
const printOdds = (arr) => {
arr.forEach((el) => {
if (el % 2 != 0) console.log(el);
});
}
0
const printOdds = (arr) => {
arr.forEach((el) => {
if (el % 2 != 0) console.log(el);
});
}