JS Function not executed from Module
<p>can anybody say me, why this kind of function will not be executed:</p>

<pre><code>var textStyle = {
      color: function () {
             console.log('test')
             return 'red'
            }
      }
}
</code></pre>

<p>but this one works fine:</p>

<pre><code>   var textStyle = {
          color: test()
          }
    }

 function test () {
    console.log('test');
        return 'red'
    }
</code></pre>