We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf793e6 commit 75eb0d1Copy full SHA for 75eb0d1
index.js
@@ -36,9 +36,10 @@ console.log(listFinale[0],listFinale[listFinale.length-1])
36
// 1. Make the function return the number of filming locations in 2020 only
37
// 2. Log the result
38
function getFilmingLocationsNumber2020 () {
39
-
+ let list2020 = filmingLocations.filter(x => new Date(x.fields.date_debut).getFullYear()==2020)
40
+ return list2020.length
41
}
-console.log()
42
+console.log(getFilmingLocationsNumber2020())
43
44
// 📝 TODO: Number of filming locations per year
45
// 1. Implement the function, the expected result is an object with years as
0 commit comments