Lesson Planet
Search educational resources
  • Sign In Try It Free
  • AI Teacher Tools
    • Discover Resources Search reviewed educational resources by keyword, subject, grade, type, and more
    • Curriculum Manager (My Content) Manage saved and uploaded resources and folders To Access the Curriculum Manager Sign In or Join Now
    • Browse Resource Directory Browse educational resources by subject and topic
    • Curriculum Calendar Explore curriculum resources by date
    • Lesson Planning Articles Timely and inspiring teaching ideas that you can apply in your classroom
    • Our Story
    • Frequently Asked Questions
    • Testimonials
    • Contact Us
  • Pricing
  • School Access
    • Your school or district can sign up for Lesson Planet — with no cost to teachers
      Learn More
  • Sign In
  • Try It Free
Creating Functions Lesson PlanCreating Functions Lesson Plan
Publisher
Code.org
Resource Details
Curator Rating
Educator Rating
Not yet Rated
Grade
9th - 12th
Subjects
STEM
1 more...
Resource Type
Lesson Plans
Audience
For Teacher Use
Duration
1 hr
Instructional Strategies
Collaborative Learning
1 more...
Technology
Video
Internet Access
Lesson Plan

Creating Functions

Curated and Reviewed by Lesson Planet
This Creating Functions lesson plan also includes:
  • CS Principles: Defining and Calling Functions
  • Join to access all included materials

Quit repeating yourself ... you can make this simpler! Rather than repeating the same set of code over and over, class members learn to build and call functions in a series of challenges in App Lab. In the end, they combine functions to create a design that involves many repetitive steps. 

10 Views 7 Downloads

Concepts

algorithms, javascript, computer code, computer science, functions, technology resources

Instructional Ideas

  • Have a discussion with the class to point out that the term function here does not have the same meaning as the term function has in their math class
  • Have class members create their own designs using the functions they created

Classroom Considerations

  • Even though pupils work in pairs, be sure they know they are each responsible for their own programs
  • The fifth in a series of 10 lessons

Pros

  • The lesson plan highlights a misconception that individuals tend to make when defining functions in JavaScript
  • Contains a link to the forum, so you can get hints from other teachers

Cons

  • Challenges five and six can be confusing, leading individuals to think they should draw the entire diamond

View 3,909 other resources for 9th - 12th Grade STEM

© 1999-2026 Learning Explorer, Inc.
Teacher Lesson Plans, Worksheets and Resources

Sign up for the Lesson Planet Monthly Newsletter

Open Educational Resources (OER)

  • Health
  • Language Arts
  • Languages
  • Math
  • Physical Education
  • Science
  • Social Studies
  • Special Education
  • Visual and Performing Arts
View All Lesson Plans

Discover Resources

  • Our Review Process
  • How it Works
  • How to Search
  • Create a Collection

Manage Curriculum

  • Edit a Collection
  • Assign to Students
  • Manage My Content
Contact Us Site Map Privacy Policy Terms of Use