title: Converting binary to hexadecimal
body: <p>I am converting binary to hexadecimal but the code below returns a wrong answer:</p>
  
  <pre><code>var number = 1011;
  var hexa = parseInt(number, 2).toString(16);
  return hexa;
  </code></pre>
  
  <p>This returns <code>b</code> but it should have to be return <code>B</code>. What is the problem?</p>