Jak wypełnić datalist HTML wartościami tablic w JavaScript

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

//paste var str into html 
Calm Chipmunk