SyntaxError: unknown: Missing semicolon. (4:16)

use this in place of every return statement:
return names[ ];
and also enter the index number accordingly.
This is because an array element is called like arrName;
It should end with semi-colon for syntax’s sake and enter the index number of array element in between [ ].

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.