Function Basics
Functions are reusable blocks of code that perform specific tasks.
Declaring Functions
Loading JavaScript Playground...
Function Expressions
Loading JavaScript Playground...
Function Scope
Loading JavaScript Playground...
Hoisting
Loading JavaScript Playground...
Exercise: Create a Greeter
Create a function that prints a greeting:
Loading JavaScript Exercise...
Exercise: Multiple Calls
Create a function and call it three times:
Loading JavaScript Exercise...
Up next · Lesson 20 of 37
Parameters and Arguments
1 min read
19 of 37 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

