Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 321 Bytes

ex_139.md

File metadata and controls

9 lines (8 loc) · 321 Bytes

Exercise 139

  • Create a new index139.js file
  • Define a numbers array with values between 1000 and 1
  • Iterate over the numbers array and filter the following values creating new arrays for each type:
    • Even numbers
    • Odd numbers
  • Show the last 10 odd numbers as output
  • Show the first 20 even numbers as output