Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions exercises.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ const moviesThatIncludeThe = movies.filter((movie) =>
movie.title.includes("The")
);
// from movies array, return all movies with only 2 genreIds

const moviesWithTwoGenereIds = movies.filter(
(movie) => movie.genreIds.length === 2
);
console.log(moviesWithTwoGenereIds);
// from movies array, return the title and description of the movie that includes following genreIds - [ 80, 53, 18 ]
const genreId = [80, 53, 18];
const moviesGenreIds = movies.map((movie) => movie.genreIds);

// from movies array, return all the movies that include 878 genreId
const moviesThatInclude878 = movies.filter((movie) =>
Expand Down Expand Up @@ -94,5 +95,3 @@ const usersCdmxOrLondon = users.some(
user.address.city.includes("CDMX") || user.address.city.includes("London")
);
// from users array, return longer company catchPhrase

// from users array,