title: JS: Is it possible "something(arg)" and "something.my_method(arg)" at same time
body: <p>I know how create just a function <code>something(arg)</code></p>
  
  <pre><code>something = function(arg) {
   console.log('Function result', arg);
  }
  </code></pre>
  
  <p>I know how create an object with function <code>something.my_method(arg)</code></p>
  
  <pre><code>something = {
    my_method: function(arg) {
      console.log('Method result', arg);
    }
  }
  </code></pre>
  
  <p>Is it possible to write code, wher both <code>something(arg)</code> and <code>something.my_method(arg)</code> are exists?</p>
  
  <p><strong>Like this</strong><br>
  In file:</p>
  
  <pre><code>// Needed code
  
  something(123)
  something.my_method(234)
  </code></pre>
  
  <p>Output in console:</p>
  
  <pre><code>Function result 123
  Function result 234
  </code></pre>