Write a JavaScript program having two functions sum and mean.
The web page will ask the user to enter five values to be added.
After taking input it will calculate the sum and mean of those values by calling sum
and mean functions.