title: Javascript can I turn const to function with output
body: <p>I'm learning javascript now and I had an idea while I was working can I change this :</p>
  
  <pre><code>const x = this.props.form.getFieldValue('product_gender')
  console.log(x)
  </code></pre>
  
  <p>Into something like :</p>
  
  <pre><code>this.props.form.getFieldValue('product_gender', x =&gt; console.log(x))
  </code></pre>
  
  <p>Forgive me if sound stupid but I'm new to javascript.
  thanks.</p>