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
Local and Global Variables, Computer Programming Instructional VideoLocal and Global Variables, Computer Programming Instructional Video
Publisher
Khan Academy
Resource Details
Curator Rating
Educator Rating
Not yet Rated
Grade
6th - Higher Ed
Subjects
STEM
1 more...
Resource Type
Instructional Videos
Media Length
5:06
Audiences
For Teacher Use
1 more...
Duration
10 mins
Instructional Strategies
Flipped Classroom
1 more...
Accessibility
Closed Captions
Year
2014
Usage Permissions
Creative Commons
BY-NC-SA: 3.0
cc
Instructional Video

Local and Global Variables, Computer Programming

Curated and Reviewed by Lesson Planet
This Local and Global Variables, Computer Programming instructional video also includes:
  • JavaScript Guide
  • Local and Global Variables, Computer Programming (HTML version from khanacademy.org)
  • Join to access all included materials

This video explains the difference between local and global variables in JavaScript programming without getting into the nitty gritty of variable lifetimes. Using a small coding example with a function defined, the author shows how a range of code exists where you have access to local variables and how that differs from variables defined globally.

3 Views 3 Downloads

Concepts

javascript, computer code, Computer Programming, technology resources

Additional Tags

programming in javascript

Classroom Considerations

  • This video is hosted on YouTube

Pros

  • Provides an excellent explanation about an important concept in programming, the scope of a variable 

Cons

  • None

View 6,122 other resources for 6th - Higher Ed 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