var opts = ['text1', 'text2']; var html = '<select>' + opts.reduce((p, c)=> p += '<option>' + c + '</option>', '') + '</select>'; console.log(html);