JavaScript Functions

JavaScript Functions

Grade 7th Grade Ā· Computer Science Ā· 45 min

What's Included

Learning Objective

I can write a JavaScript function to perform a specific task.

Warm-Up Video

saperis Ā· 6:23

JavaScript for Beginners - Functions

Guided Notes

3 key 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.

Practice Questions

9 questions Ā· Multiple choice & Short answer & True/false & Fill in the blank

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. ā€

Complete Lesson Package

Get all 3 ready-to-use resources:

Teacher GuideComplete lesson plan
Student DocPrintable student handouts
SlidesReady-to-use presentation