let test = ['mar', 'dja'];
let arr = [];
for (let i = 0; i < test.length; i++) {
arr[i] = `<div class="skat" data-form="` + test[i] + `">` + name + `</div>`;
}
var arrtest = arr.split(', ');
for (let i = 0; i < test.length; i++) {
document.querySelector('body').innerHTML = arrtest[i];
}