This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //Takes N number arguments and returns the greatest number | |
| function greatestNumber(){ | |
| //initialize empty array | |
| var arr=[]; | |
| //loop over arguments object | |
| for (var item in arguments) { | |
| //push each arg key's value to array | |
| arr.push(arguments[item]); | |
| } |