var People = function(status){
this.status = status;
};
People.prototype = {weather:false,getWeather:function(){alert(this.weather)},setWeather:function(p){this.weather = p}};
var you = new People('well'), i = new People();
if(you.status == 'well'){
i.setWeather('sunday');
}
i.getWeather();
this.status = status;
};
People.prototype = {weather:false,getWeather:function(){alert(this.weather)},setWeather:function(p){this.weather = p}};
var you = new People('well'), i = new People();
if(you.status == 'well'){
i.setWeather('sunday');
}
i.getWeather();