// Function declaration function myFunction() { } // Function expression const myFunction = function() { }; // Arrow function const myFunction = () => { }; // Function constructor (rarely used) const myFunction = new Function('return 1');
Generating explanation with Claude AI...
This will use 10 credits