-
What will army[0] alert? : It will alert nothing since its not a method call.
-
How to fix? : by calling like this
army[0]();
What will army[0] alert? : It will alert nothing since its not a method call.
How to fix? : by calling like this army[0]();