function Weather(data) {
    this.forecast = data.weather.description;
    const dateObj = new Date(data.valid_date);
    this.time = dateObj.toDateString();
}
// constructor function formate the weather responed data
constructor function formate the weather responed data
constructor function formate the weather responed data
function Weather(data) {
    this.forecast = data.weather.description;
    const dateObj = new Date(data.valid_date);
    this.time = dateObj.toDateString();
}
function Weather ( data ) { this . forecast = data . weather . description ; const dateObj = new Date ( data . valid_date ) ; this . time = dateObj . toDateString ( ) ; }
constructor function formate the weather responed data
constructor function formate the weather responed data