title: How to handle magic number in javascript
body: <p>I have search through google with keyword handle javascript magic number but couldn't find one.
  In c# i would used constant defined number but i don't know what to use in javascript</p>
  
  <p>something like this</p>
  
  <pre><code>public class MagicNumberHelper
  {
    const int optionA = 1;
    const int optionB = 2:
    const int optionC = 3
  }
  </code></pre>