Skip to content

Glossary: JavaScript Basics

Function

Also written: functions

A named piece of code that does a job when you call it, like `lineTotal` or `greet`. It can take inputs and give back a result.

Where the book teaches it

Related terms

CallParameterReturnMethod