var mylist = ['first', 'second', 'third', 'fourth', 'fifth']
var mylist = ["first", "second", "thrid", "fourth", "fifth"];
for (var i = 0; i < mylist.length; i++) {
var button = document.createElement("button");
button.className = mylist[i];
button.textContent = mylist[i];
document.querySelector(".button-list").appendChild(button);
}