for example from the line:
253 to 269
https://github.com/WebAhead12/FilmPages/blob/main/index.js#L253
repeated in:
ratingTopLowMovies() ,getMovieByName(name), getTvByName(name), getPopularMovies(), getGenrefromId(arr), upcomingMovie(), airingTv()
You have the same statements repeated, if you send the data to a function to do the job the code would be easier to read, and more compact.
for example from the line:
253 to 269
https://github.com/WebAhead12/FilmPages/blob/main/index.js#L253
repeated in:
ratingTopLowMovies() ,getMovieByName(name), getTvByName(name), getPopularMovies(), getGenrefromId(arr), upcomingMovie(), airingTv()You have the same statements repeated, if you send the data to a function to do the job the code would be easier to read, and more compact.