JavaScript - document.write not working
<p>I am trying to print an h3 that has an id of question, but it won't work.</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 questions() {
  var question = document.getElementById("question");
  document.write(question);
}

questions();</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>body {
  font-family: Arial;
}

.header {
  padding-top: 50px;
  text-align: center;
}</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;meta charset="UTF-8"&gt;
  &lt;title&gt;Document&lt;/title&gt;
  &lt;link rel="stylesheet" href="styles.css"&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;div class="header"&gt;
    &lt;h1&gt;Edu Game 1&lt;/h1&gt;
    &lt;h3&gt;What is&lt;h3 id="question"&gt;1+1?&lt;/h3&gt;&lt;/h3&gt;
    &lt;input type = "text" id="ansBox" /&gt;
  &lt;/div&gt;

  &lt;script src="scripts.js"&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>As you can see, the result is fine until it reaches the JavaScript. How can I fix this? I know document.write isn't the best thing to use to print stuff, but I am just testing something.</p>