FireEdgeX
0
All tracksJavaScript

LESSON 05 ยท JAVASCRIPT

Functions and return values

Functions package a useful operation behind a name and clear inputs.

6 min readIn progress

THE IDEA

Understand the concept

A function can accept parameters, perform a task, and return a value to its caller. Small, focused functions make behavior easier to test and reuse; returning a value is different from printing it to the console.

WORKED EXAMPLE

See it in context

Example