//loadColors("white-White,blue-Blue,colorlessLand-Colorless Land,gold-Gold"), this is an example of how to use the function function loadColors(colors) { var endResult = "" var colorList = colors.split(",") for (i = 0; i < colorList.length; i++) { endResult += "" } document.getElementById("colorSelection").innerHTML = endResult }