That looks about right, you're just missing a closing bracket for the for loop in the min method, this needs to go before the return statement. That should get rid of those errors.
Type: Posts; User: samfin
That looks about right, you're just missing a closing bracket for the for loop in the min method, this needs to go before the return statement. That should get rid of those errors.
Your min method is more or less right. This line you've but index twice and then i for the last
for (index = 1; index < numbers.length; i++)
Change these all to i.
You've also not returned min...