Probably for the same reasons you can&#x27;t write<p><pre><code>    var function diameter() {}
</code></pre>
It&#x27;s definitely a shame that the only way to achieve consistent behaviour between variables and named functions requires you to write the name twice.<p><pre><code>    const diameter = function diameter() {};
</code></pre>
If it wasn&#x27;t for the usefulness of named functions for debugging and hoisting, I would just use:<p><pre><code>    const diameter = function() {};</code></pre>