title: Pass the values, without sending as parameters in the function
body: <p>How can I pass the values <code>userId</code>, <code>sessionId</code>,  <code>cb</code>, without sending as a parameter in the function?</p>
  <pre class="lang-js prettyprint-override"><code>userSessionInfo: function (userId, sessionId, cb) {
    if (!sessionId || sessionId == '') {
      let user_id = userId;
  </code></pre>
  <p>I need to do something like:</p>
  <pre class="lang-js prettyprint-override"><code>userSessionInfo: function () {
    userId = &quot;...&quot;; 
    sessionId = &quot;...&quot;; 
    cb = &quot;...&quot;;
  </code></pre>
  <p>Is possible?</p>