Retrun data from the function when it is executed