title: Changing a value by JavaScript inside a ins tag
body: <pre><code>&lt;ins class='adsbygoogle'
  style='display:block'
  data-ad-client='ca-pub-XXXXXXXXXXXXXXX'
  data-ad-slot='000000000000'
  data-ad-format='auto'
  data-full-width-responsive='true'&gt;&lt;/ins&gt;
  </code></pre>
  <p>I want to change <code>data-ad-slot</code> value to <code>123456789</code> with JavaScript. How can I do that?
  I have tried this ~ (But not working)</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-html lang-html prettyprint-override"><code>&lt;ins class='adsbygoogle'
      style='display:block'
      data-ad-client='ca-pub-XXXXXXXXXXXXXXX'
      data-ad-slot=document.write (x);
      data-ad-format='auto'
      data-full-width-responsive='true'&gt;&lt;/ins&gt;
  
      &lt;script&gt; var x= 123456789;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>