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

Hi, what do you want to do?

Create a lesson plan
Create a lesson plan
Generate resources with 80+ AI teacher tools
Generate resources with 80+ AI teacher tools
Search 200,000 instructional videos
Search 200,000 instructional videos
Find a teaching resource
Find a teaching resource
Learn to Code: Understanding Functions and Making a Guessing Game Instructional VideoLearn to Code: Understanding Functions and Making a Guessing Game Instructional Video
Publisher
Lifehacker
Resource Details
Curator Rating
Educator Rating
Not yet Rated
Grade
9th - Higher Ed
Subjects
STEM
3 more...
Resource Type
Instructional Videos
Media Length
7:53
Audiences
For Teacher Use
1 more...
Duration
30 mins
Instructional Strategies
Demonstration
3 more...
Technology
Projection
Internet Access
Year
2011
Usage Permissions
Fine Print
Instructional Video

Learn to Code: Understanding Functions and Making a Guessing Game

Curated and Reviewed by Lesson Planet
This Learn to Code: Understanding Functions and Making a Guessing Game instructional video also includes:
  • Vocabulary
  • Join to access all included materials

Here's where it all comes together. Using the skills learned in the previous three videos, the final installment of this series on JavaScript explores how to create functions. By the end of the video, young programmers will be able to write code that takes user-inputted data and creates a response based on a sequence of if and else statements.

33 Views 22 Downloads
CCSS: Adaptable

Concepts

Computer Programming, computer code, javascript, logic, computer science, vocational training, technology resources

Instructional Ideas

  • Supplement this video into a computer programming lesson series on JavaScript
  • Pause the video to supplement instruction, answer any questions, and allow students to follow along and create their own code
  • Following the video, have students complete a series of coding tasks that demonstrate their learning

Classroom Considerations

  • This video is hosted on YouTube

Pros

  • Using screen capture, the presenter is able to clearly demonstrate the coding techniques being introduced
  • Provides clear, easy-to-understand explanations for each line of code written during the video

Cons

  • Content is a little dry and may not engage all learners

Common Core

SL.9-10.2 SL.11-12.2 L.9-10.6 L.11-12.6

See similar resources:

Lesson Plan

Star Wars: Building a Galaxy with Code

Code.org
Welcome to the code side. The interactive lesson introduces coding in a game format with familiar characters. Young computer experts learn to develop code to control the interaction of the characters in the game. The activity ends with...
3 mins 6th - 12th STEM
Lesson Plan

Learning Roomba Module 3: Controlling Movement

Drexel University
Look at it go. The resource, the third in a series of five using a Roomba, explains the different types of movements a Roomba makes, then challenges pupils to create computer codes that will cause the Roomba to travel specific paths.
9th - 12th STEM
Interactive

Minecraft Hour of Code

Code.org
Devote an hour to computer coding ... it's time well spent! The activity has young computer scientists write code to solve puzzles in the Minecraft game. They learn how to apply block codes and repeat loops.
2nd - 12th STEM
Instructional Video

Learn to Code: Variables and Basic Data Types

Lifehacker
Explore the fundamentals of coding in Javascript with the first video of this four-part series. After learning about the three basic data types — strings, numbers, and Boolean — young programmers are taught how to...
7 mins 9th - Higher Ed STEM
CCSS: Adaptable
Instructional Video

Learn to Code: Arrays and Logic Statements

Lifehacker
Young programmers learn about the concepts of arrays and logic statements with the third video in this introductory series on JavaScript. Starting with a brief explanation of arrays, the resource goes on to provide clear and...
14 mins 9th - Higher Ed STEM
CCSS: Adaptable
Instructional Video

Learn to Code: Working with Variables

Lifehacker
Building on prior knowledge about defining variables, the second video in this series on coding explains how to perform simple operations with data in JavaScript. Introducing first the concept of statements, the video goes on...
6 mins 9th - Higher Ed STEM
CCSS: Adaptable
Interactive

Challenge: Ice Cream Code

Khan Academy
Practice adding color to your simple JavaScript picture. Three layers of ice cream in a bowl with a cherry on top, gives your beginning coders a tasty challenge. 
6th - Higher Ed STEM
Lesson Plan

Creating Functions

Code.org
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...
9th - 12th STEM
Instructional Video

How Exactly Does Binary Code Work?

TED-Ed
As far as languages go, binary is pretty easy to learn. Scholars watch an informative video on binary code. It explains the basics of how binary code works, and then shows how people encode colors and sound as binary code.
5 mins 9th - 12th STEM
Interactive

Challenge: Funky Frog

Khan Academy
You haven't seen any large-mouth frogs around have you? Hopefully, there will be lots of them as your young JavaScript coders complete this task to create a frog with a wide mouth and use variables in a way that connect the frog face...
5th - Higher Ed STEM
Try It Free
© 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