title: Javascript unicode characters loop
body: <p>I'm trying to create a loop, to know a certain range of characters in unicode. For example if cyrrilic letters are ranged from 1040-1103 (according to <code>.charCodeAt()</code> method), I want to create a loop that would output unicode characters from that range. So far I've got this:</p>
  
  <pre><code>    for (var i = 1040; i &lt; 1104; i++){
      document.write("\u" + i.toString(16) + "&lt;br /&gt;");
      }
  </code></pre>
  
  <p>From what I've got, the outputing of a unicode character via <code>"\u0410"</code> (cyrrilic "A") wants a hex code of the character, when <code>.charCodeAt()</code> outputs a decimal value. I used <code>.toString(16)</code> here to convert the decimal value to hex, but it doesn't output anything for some reason, how can I do it so it would connect the "\u" with "0410"?</p>
  
  <p>P.S: I tried adding <code>"\u0" + i.toString(16)</code>, because it seems that <code>"\u410"</code> won't work, but nonetheless, how can I do this? Thanks</p>