let str=''; let htmlstring = Names.forEach((name) => { str += '<option value="' + name + '" />'; }); //paste var str into html