function Movies(data) {
    this.title = data.title;
    this.overview = data.overview;
    this.average_votes = data.vote_average;
    this.total_votes = data.vote_count;
    this.image_url = `https://image.tmdb.org/t/p/w500${data.poster_path}`;
    this.popularity = data.popularity;
    this.released_on = data.release_date;
}
// constructor function formate the location responed data
constructor function formate the location responed data
constructor function formate the location responed data
function Movies(data) {
    this.title = data.title;
    this.overview = data.overview;
    this.average_votes = data.vote_average;
    this.total_votes = data.vote_count;
    this.image_url = `https://image.tmdb.org/t/p/w500${data.poster_path}`;
    this.popularity = data.popularity;
    this.released_on = data.release_date;
}
function Movies ( data ) { this . title = data . title ; this . overview = data . overview ; this . average_votes = data . vote_average ; this . total_votes = data . vote_count ; this . image_url = ` ${ data . poster_path } ` ; this . popularity = data . popularity ; this . released_on = data . release_date ; }
constructor function formate the location responed data
constructor function formate the location responed data