title: InnerHTML returning [object HTMLOptionElement]
body: <p>I am trying to create a function to put options inside a select through the classes of these selects.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function selectOptionsClass(selectClass, arrayOptions) {
    let selects = document.querySelectorAll("." + selectClass);
  
    for (let i = 0; i &lt; arrayOptions.length; i++) {
      let option = document.createElement("option");
      option.value = arrayOptions[i];
      option.text = arrayOptions[i];
  
      selects.forEach(select =&gt; {
        select.innerHTML += `${option}`;
        console.log(select);
      });   
    }
  }
  
  let testeOptions = [0, 10, 20];
  selectOptionsClass('select-teste', testeOptions);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;title&gt;Teste&lt;/title&gt;
  
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
  
    &lt;link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" /&gt;
    
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="form-group col-2"&gt;
      &lt;label for="teste"&gt;Teste&lt;/label&gt;
      &lt;select name="teste" id="teste" class="form-control select-teste" required&gt;&lt;/select&gt;
     &lt;/div&gt;
     &lt;div class="form-group col-2"&gt;
      &lt;label for="teste"&gt;Teste&lt;/label&gt;
      &lt;select name="teste" id="teste" class="form-control select-teste" required&gt;&lt;/select&gt;
     &lt;/div&gt;
     &lt;div class="form-group col-2"&gt;
      &lt;label for="teste"&gt;Teste&lt;/label&gt;
      &lt;select name="teste" id="teste" class="form-control select-teste" required&gt;&lt;/select&gt;
     &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But the function is returning an [object HTMLOptionElement] inside select, not the object element I'd like.</p>
  
  <p>Can someone help me? Thank you!</p>