Function Statement

wiki ESM javascript snippet runner:

//wiki.ralfbarkow.ch/assets/pages/snippet-template/esm.html HEIGHT 150

Consider the following `function` *statement*.

function identity(n) { return n; } // invoke it console.assert(identity(42) === 42); // inspect it console.assert((typeof identity) === 'function'); console.assert(identity.name === 'identity');

How to print `function` and `identity` in the *wiki ESM javascript snippet runner* frame on top of this page?

~

Lambdas with Arrow Functions is a part of the book ⇒ R. Gandhi, JavaScript Next, doi , p. 14