Check if All Files are Images
Write a function
allAreImages
that takes an array of file names and returns true
if every file name ends with .jpg
, .png
, or .gif
. Use Array.prototype.every()
in your solution.Premium
JavaScript
Console