JavaScript Functions
Free to teach as-is — the teacher guide, student handout, and slides are included.
Free — we'll email you an access link. Google Docs format.
Objective
I can write a JavaScript function to perform a specific task.
Part 1 of 4
Warm-up video
saperis · 6:23
We don't generate video — this one is by saperis on YouTube. The practice questions and exit ticket below were drafted by AI for this objective, and every question is editable in the teacher guide.
Part 2 of 4
Key concepts
3 concepts
- 1
A JavaScript function is a sub program that performs a specific task, such as calculate, print, or process data.
- 2
To declare a function, you start with the function keyword, then the function name, parentheses, and curly brackets containing the code to be executed.
- 3
A function can only return one thing, but you can return an object containing multiple values if needed.
Part 3 of 4
Practice
9 questions
What keyword is used to declare a function in JavaScript?
What is the primary purpose of parameters in a JavaScript function?
Part 4 of 4
Exit ticket
Quick comprehension check
“Write a JavaScript Function called 'stackPancakes' that will have Karol the dog place three balls on one spot. Remember to include the function key word and curly brackets. ”
Sample answer included in the free materials
Get the materials
Teacher guide, student handout, and slides — free, in Google Docs format
Teacher Guide
Complete lesson plan with answer keys and alternate activities
Student Handout
Printable worksheet
Slides
Ready to present
We'll ask for your email to send your access link — nothing else.
Teaching a group at a different level?
Where are your students right now? We'll rebuild this lesson to match — including the teacher guide, student handout, and slides, saved to your Google Drive.
Adapt This Lesson

