Please tell me how is my code

Hi guys, hope you’re all doing okay. This is my very first post in this forum.

I’m seeking your opinion about my code solution of the problem from the book I’m reading which is “TheJSway”. So, I’m in the functional programming part now and it’s really giving me fits. I think I’ve been spending too much time on it already. Actually I think I prefer OOP yet still I want to learn this FP thing and get past this chapter on the book.

Please check below:

const movieList = [

    {

      title: "Batman",

      year: 1989,

      director: "Tim Burton",

      imdbRating: 7.6

    },

    {

      title: "Batman Returns",

      year: 1992,

      director: "Tim Burton",

      imdbRating: 7.0

    },

    {

      title: "Batman Forever",

      year: 1995,

      director: "Joel Schumacher",

      imdbRating: 5.4

    },

    {

      title: "Batman & Robin",

      year: 1997,

      director: "Joel Schumacher",

      imdbRating: 3.7

    },

    {

      title: "Batman Begins",

      year: 2005,

      director: "Christopher Nolan",

      imdbRating: 8.3

    },

    {

      title: "The Dark Knight",

      year: 2008,

      director: "Christopher Nolan",

      imdbRating: 9.0

    },

    {

      title: "The Dark Knight Rises",

      year: 2012,

      director: "Christopher Nolan",

      imdbRating: 8.5

    }

  ];

  // TODO: Make an array of the titles of movies released before 2000

//my solution
  const movies = arr => arr.filter(movies => movies.year < 2000);

  const moviesBefore2000 = movies(movieList).map(movie => movie.title);

  console.log(moviesBefore2000);

//solution I got from the download linked to this book in github

    const titles = movies => movies.map(movie => movie.title);

    const older = movie => movie.year < 2000;

    const filter = (movies, fct) => movies.filter(fct);

    const moviesBefore2001x = titles(filter(movieList, older));

    console.log(moviesBefore2001x);

I’ve been really trying to understand functional programming. I think I’m stuck at that part of the book for 2 weeks now. At first I really can’t solve this problem so I went and download the solution. I understand the downloaded solution or at least read the code on what it’s doing but it’s hurting my brain. Haha. I think it’s too complex.

So now, I tried and solve the given problem and came up with that first solution above.
I’m happy that it worked and was a match to the needed output. But then when I compared it with the downloaded solution, it was far from it and I’m not sure what to think.

Is my solution bad, or hard to read? Please share me your opinion. Been tying to learn js as my first language and honestly I’m on my 3rd month already and I feel like I’ve only learnt so little.

Thank you all and sorry if my post seem so long.

Cheers,

Ace