Skip to content

Commit

Permalink
Fix typo in mutator and accessor methods lesson
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalikoze committed Mar 27, 2024
1 parent 7149521 commit 8b83de1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const cities = [
Write a function `reverseMovies(movies)` that takes an array of sorted `movies` by their year and uses the `reverse` method to reverse the order of movies. Return a new array of movies where they are listed from newest to oldest.

```js
console.log(reverseMovies(students));
console.log(reverseMovies(movies));
// Output: [
// { title: 'Inception', director: 'Christopher Nolan', year: 2010 },
// { title: 'The Dark Knight', director: 'Christopher Nolan', year: 2008 },
Expand Down

0 comments on commit 8b83de1

Please sign in to comment.