Skip to content

Commit cff3ce8

Browse files
committed
fix typo for the word title in the objects of movies array and descending in comments, add missing commas after elements of movies array
1 parent 52c11dd commit cff3ce8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arrays/25-movies.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
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}
2+
{title: 'a', year: 2018, rating: 4.5},
3+
{title: 'b', year: 2018, rating: 4.7},
4+
{title: 'c', year: 2018, rating: 3},
5+
{title: 'd', year: 2017, rating: 4.5}
66
]
77

88
// All movies in 2018 with rating > 4
99
// sort them by their rating
10-
// secending order
10+
// descending order
1111
// pick their title
1212

1313
const titles = movies

0 commit comments

Comments
 (0)