title: How to convert decimal to binary in JS?
body: <p>It is possible to convert binary to decimal by this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var binary = "110";
  var int = parseInt(binary, 2);
  document.getElementById("results").innerHTML = int;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="results"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But, how I can do an opposite operation: converting int to binary?</p>