title: How to get list of all applicable methods
body: <p>I just start learning <code>JavaScript</code> and I faced with problem: I don't know how to check what exactly I can do with my variables (for example, how I can manage string or array). In <code>Python</code> there are very useful methods <code>dir()</code> and <code>help()</code> that allow user to get list of all applicable methods and find out how to use them:</p>
  
  <pre><code>&gt;&gt;&gt;my_number = 1
  &gt;&gt;&gt;dir(my_number)
  </code></pre>
  
  <p>This will return </p>
  
  <pre><code>['bit_length', 'conjugate', 'denominator', 'from_bytes', 'imag', 'numerator', 'real', 'to_bytes']
  </code></pre>
  
  <p>the list of methods I can apply to <code>my_number</code> variable</p>
  
  <p>Then I can get description of each method:</p>
  
  <pre><code>&gt;&gt;&gt;help(my_number.real)
  
  Help on int object:
  
  class int(object)
  |  int(x=0) -&gt; integer
  |  int(x, base=10) -&gt; integer
  |
  |  Convert a number or string to an integer, or return 0 if no arguments
  |  are given.  If x is a number, return x.__int__().  For floating point
  |  numbers, this truncates towards zero...
  </code></pre>
  
  <p>So is there any similar function in <code>JavaScript</code> so I can call it like <code>console.log(getAllMethodsFor(myNumber))</code> ? This could significantly simplify process of language learning...</p>