Q} Write a function called longWord that takes an array of Strings as an argument and returns the longest string in the array
I want to know does it mean put something inside the parameters for the function or keep it empty ?
because I solve this question without put inside the parameters any thing , and I make the array outside the function and I just put inside the function a for Loop to get the longest Word , so is that correct ?
thanks for help Sir , can I know please how to pass the array into function ? does it just type the name of the array inside the function’s brackets ? or what ?