title: JavaScript print all used Unicode characters
body: <p>I am trying to make JavaScript print all Unicode characters. According to my research, there are 1,114,112 Unicode characters.</p>
  
  <p>A script like the following could work:</p>
  
  <pre><code>for(i = 0; i &lt; 1114112; i++) 
      console.log(String.fromCharCode(i));
  </code></pre>
  
  <p>But I found out that only 10% of the 1,114,112 Unicode characters are used. </p>
  
  <p><strong>How can I can I only print the used unicode characters?</strong></p>