Parameters and Arguments
Parameters make functions flexible by allowing them to work with different values.
Parameters Basics
Loading JavaScript Playground...
Multiple Parameters
Loading JavaScript Playground...
Default Parameters
Loading JavaScript Playground...
Rest Parameters
Loading JavaScript Playground...
Exercise: Personalized Greeting
Create a function that takes a name and outputs a greeting:
Loading JavaScript Exercise...
Exercise: Calculator Function
Create a function that adds two numbers:
Loading JavaScript Exercise...
Up next · Lesson 21 of 37
Return Values
1 min read
20 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.

