Javascript30 Day4: Array Cardio Day1

data

Array.prototype.filter()
1. Filter the list of inventors for those who were born in the 1500's.

const fifteen = inventors.filter(
(inventor) => inventor.year >= 1500 && inventor.year < 1600
);

console.table(fifteen);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
YvonneDev

YvonneDev

201 Followers

❤️Front-end Web Development self-taught *share what I learned*