DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
print odd numbers in an array in javascript
[1,2,3,4].forEach((num) => num % 2 === 0 && console.log(num));
PREVIOUS
NEXT
Tagged:
#print
#odd
#numbers
#array
#javascript
ADD COMMENT
Topic
COMMENT
Name
6+3 =
Submit