const images = [
'Karten/MemoryCard1.jpg',
'Karten/MemoryCard2.jpg',
'Karten/MemoryCard3.jpg',
'Karten/MemoryCard4.jpg',
];
images.forEach(src => {
const img = document.createElement('img');
img.src = src;
const div = document.createElement('div');
div.className = 'memory-card';
div.append(img);
document.querySelector('#Cards').append(div);
});