- 1

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

14th May 2020, 4:26 PM
"Mohammed Khier" Alawadi
"Mohammed Khier" Alawadi - avatar
10 Respuestas
+ 8
const printOdds = (arr) => { arr.forEach(el => { if (el % 2 != 0) console.log(el); }); }
5th Nov 2020, 3:22 PM
Maria R.
+ 1
=> arr el
14th Nov 2022, 10:28 AM
Daniela Bulimar
Daniela Bulimar - avatar
0
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); }); }
2nd Nov 2020, 3:06 PM
MANAR SENHAJI ZARHOUANE
MANAR SENHAJI ZARHOUANE - avatar
0
please type answer anyone
4th Nov 2020, 3:55 PM
Dev Arora
0
const printOdds = (arr) => { arr .forEach( el => { if (el % 2 != 0) console.log(el); }); }
17th Dec 2020, 7:52 PM
Turikumana Isaie
Turikumana Isaie - avatar
0
Functions in ECMAScript 6 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); }); }
2nd Mar 2022, 5:47 AM
Pascal Elisée BALOKI
Pascal Elisée BALOKI - avatar
0
=> arr el
28th Oct 2022, 12:28 AM
Ahmed Khaled Sobhi
Ahmed Khaled Sobhi - avatar
0
28th Oct 2022, 12:29 AM
Ahmed Khaled Sobhi
Ahmed Khaled Sobhi - avatar
0
Fill in the blanks to declare an arrow function that takes an array and prints the odd elements. const printOdds = (arr) => { arr .forEach( el => { if (el % 2 != 0) console.log(el); }); }
6th Mar 2023, 7:47 AM
Krishn Kant Sharma
Krishn Kant Sharma - avatar