This is coding challenge number two and let's see how it is.
Create a function to find the average of two numbers.
The average of two numbers is the sum of the two numbers divided by two.
So this line number 90 has given you what is the meaning of average, and the average of two numbers
should be retained as a number.
So here it tells you to do some validation here.
Okay.
All right.
The two numbers should be supplied as numbers, sorry, as parameters to the function.
And lastly, convert the results to a whole number.
So with this kind of challenge, we have done it before.
But in this one, we've added this special key word here, like convert the result, your whole number,
meaning I just want you to know how to use some of the built in math object and most importantly also
add the line number 91.
Also, this one is optional by phone.
To improve your challenge, we can do validation to check if it's a number.
Okay.
Otherwise we can retain place to write a number instead of a string.
Okay, so in this video, let's see how I'm going to solve this particular challenge.