What is the use of best here

what is meaning why we have done best=max(best,netprofit) neither best is increasing nor decreasing

@rssrivastavarohan hey rohan there is no actual meaning of this just they are calculating maximum of both values.