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); }); }

13th May 2020, 10:29 AM
omkar bawankar
omkar bawankar - avatar
2 Answers
+ 1
const printOdds = (arr) => { arr.forEach((el) => { if (el % 2 != 0) console.log(el); }); }
13th May 2020, 12:25 PM
TomĂĄĆĄ WrĂłbel
TomĂĄĆĄ WrĂłbel - avatar
0
const printOdds = (arr) => { arr.forEach((el) => { if (el % 2 != 0) console.log(el); }); }
9th Sep 2020, 4:45 AM
DENNIS KIPLAGAT KIPCHIRCHIR
DENNIS KIPLAGAT KIPCHIRCHIR - avatar