We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c11dd commit cff3ce8Copy full SHA for cff3ce8
arrays/25-movies.js
@@ -1,13 +1,13 @@
1
const movies = [
2
- {titile: 'a', year: 2018, rating: 4.5}
3
- {titile: 'b', year: 2018, rating: 4.7}
4
- {titile: 'c', year: 2018, rating: 3}
5
- {titile: 'd', year: 2017, rating: 4.5}
+ {title: 'a', year: 2018, rating: 4.5},
+ {title: 'b', year: 2018, rating: 4.7},
+ {title: 'c', year: 2018, rating: 3},
+ {title: 'd', year: 2017, rating: 4.5}
6
]
7
8
// All movies in 2018 with rating > 4
9
// sort them by their rating
10
-// secending order
+// descending order
11
// pick their title
12
13
const titles = movies
0 commit comments