title: Display javascript variable in html body
body: <p>here is my approximate code:</p>
  
  <pre><code> &lt;script&gt; 
  function smth(){........}
      var name = smth('fullname');
   var hobby = smth('hobby');
  
      &lt;/script&gt;
  </code></pre>
  
  <p>I need to display it normally in the html body. However, every way I tried gave me an alert window or it simply didn't work. I didn't find the similar solution.
  I know that the way above gives an alert windows as well, but I just wanted to show you the way I get my variables.
  Thanks in advance.</p>