Skip to content

Glossary: JavaScript Basics

Function declaration

Also written: function keyword

Creating a function with `function name(...) { ... }`. Declarations are set up before the file's code runs, so they can be called from anywhere in the file.

Where the book teaches it

Related terms

Arrow functionFunction