Skip to content

repeatable code #11

@mohammadfaur

Description

@mohammadfaur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions