brown-wall/main.js
2023-07-04 17:00:23 +02:00

13 lines
372 B
JavaScript

"using strict";
const genres = [ "FPP"
, "Action Adventure"
, "Lobotomy aka Idlegame"
, "Specticle Fighter"
]
const genreMenu = document.getElementById('genre');
genres.forEach( genre => {
genreMenu.append(Object.assign( document.createElement("option"), { id:genre.toLowerCase(), innerHTML:genre }));
});