title: javascript - convert function into variable
body: <p>I googled a bit and it seems I either don't know what I'm asking or this isn't possible. I think it's probably the former.</p>
  
  <p>If I have an object</p>
  
  <pre><code>obj = {
    func : function(){
      return 'hello';
    }
  }
  </code></pre>
  
  <p>and I normally do <code>alert(obj.func())</code> I of course get <code>"hello"</code></p>
  
  <p>But if I wanted to have <code>obj.func</code> be simply a variable, is that possible somehow? I won't ever pass parameters to the function, I just want to reference its return value as a plain variable like <code>alert(obj.func)</code>, not a function call.</p>
  
  <p>Thanks.</p>