JSFiddle - React, Tailwind, and code Playground

HTML

<a href='//ssl.gstatic.com/dictionary/static/sounds/de/0/"+a[z]+".mp3' download=''>click</a>

JavaScript

var a = ['cat', 'fish', 'police', 'office', 'ball'];
for (var z = 0; z < a.length; z++) {
  var l = document.querySelector("a");
  l.href = "//ssl.gstatic.com/dictionary/static/sounds/de/0/" + a[z] + ".mp3";
  l.download = a[z] + ".mp3";
  l.click();
  console.log(l.download);
}