What you have written is a function statement rather than a function expression.<p>This is possible, but has no utility beyond the original.<p><pre><code>    const diameter = function diameter (r) { return 2 * PI * r; }</code></pre>