title: How to define 0x0001 (and such) in Javascript?
body: <p>I'm looking at the source code of a C++ project similar to one that I am doing in Javascript for reference.</p>
  
  <p>In C++, I have</p>
  
  <pre><code>#define FIRST_THING 0x0001
  #define SECOND_THING 0x0002
  ...
  </code></pre>
  
  <p>What do these values mean? And how would I define this in Javascript? Things break if I try to just use 0x0001 and such, so could I just do</p>
  
  <pre><code>var FIRST_THING = 1
  var SECOND_THING = 2
  </code></pre>
  
  <p>or is that completely different?</p>