Module creation

Hi,

I’m currently working on the Silver Challenge for supporting multiple file formats. Therefore I think for retrieving the file extension, this should/could be done best also through a separate module to retrieve the file extension of the url.

However I think, that also this new module (e.g. extractExtension) could be placed in the same extract.js file.
So, here my question is: can we extend the extract.js file, to support multiple functions (having the same parameters handshake (e.g. url)) ? And how to distinguish then the corresponding return values with regards the to functions called ?

I hope my question is clear, and am anxious regarding the response…

PS: I’ve already completed the book ‘Android Programming v1’ and I’m really satisfied the way the BNR Books are constructed!