brown-wall/main.js

13 lines
372 B
JavaScript
Raw Normal View History

2023-07-04 17:00:23 +02:00
"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 }));
});