JavaScript Functions

7th GradeComputer Science45 min

Learning Objective

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

Lesson Flow

Watch Video

7 min

JavaScript for Beginners - Functions

saperis

Guided Notes

9 min

Key concepts students will learn:

  • A JavaScript function is a sub program that performs a specific task, such as calculate, print, or process data.

  • To declare a function, you start with the function keyword, then the function name, parentheses, and curly brackets containing the code to be executed.

  • A function can only return one thing, but you can return an object containing multiple values if needed.

Practice

14 min

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

Exit Ticket

5 min

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.

Teacher Guide

Get the complete package:

  • Answer keys for all questions
  • Differentiation strategies
  • Extension activities
  • Printable student handouts