MicrolearnENPTES

Functions

Lesson 10 of 20 · Web.Micro

Package steps under a name, give them inputs and get a result back.

function greet() { ... } defines a function; greet() runs it. Defining does nothing by itself: the parentheses after the name make it run.

Check yourself

What makes a function actually run?

Do it in the browser: a real HTML, CSS and JavaScript tool, a short mission and instant feedback. No install.

Start this lesson — free
← Variables and the consoleDecisions and loops →

All lessons · Web.Micro