Write a JS function that composes an HTML image tag.
The input comes as an array of string elements. The first element is the location of the file and the second is the alternate text.
Examples:
Input:
['smiley.gif', 'Smiley Face']
Output:
<img src="smiley.gif" alt="Smiley Face">
The output should be printed to the console in the following format:
<img src="{file location}" alt="{alternate text}">