title: Javascript: A byte is supposed to be 8 bits
body: <p>EDIT: <a href="http://www.ascii-code.com/" rel="noreferrer">http://www.ascii-code.com/</a> I see the BIN column as binary but I am clearly missing something..</p>
  
  <p>Why doesn't binary conversion work for me?</p>
  
  <p>Lowercase b is character code 98</p>
  
  <pre><code>console.log((98).toString(2));
  </code></pre>
  
  <p>outputs</p>
  
  <pre><code>1100010
  </code></pre>
  
  <p>The length of the output is 7 when it should be 8</p>
  
  <p>A byte is 8 bits!!?</p>
  
  <p><strong>EDIT</strong></p>
  
  <blockquote>
    <p>Groups of Bits make up a Byte When 8 bits are grouped together, it is then known as a byte. And bytes are what computers use to represent various characters such as those you see on your keyboard. </p>
  </blockquote>
  
  <p>Quoted from: <a href="http://wordsmuggler.com/Learn/Binary" rel="noreferrer">http://wordsmuggler.com/Learn/Binary</a> </p>
  
  <p>I really don't understand now what I am supposed to read. If I look on Google I always am told 8 but here I am told different. Please explain as I don't understand what I am supposed to be understanding</p>