The TestDrive has the "main" When the return statement is included why do I get the error "Missing return statement".Is there a particular place where the return statement should be situated.
Varuna
Varuna Seneviratna
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
The checkUserGuess does not in all cases return something. If the locationCells array is empty, no return statement is ever reached.