Computer programming Teacher Resources
Find Computer programming lesson plans and worksheets
Showing 1,037 resources
Khan Academy
Terrific Text: Part One, Computer Programming
A program that says, "Hello world," is considered a classic in computer programming. Have your young coders join the ranks of the many others who have created one of these programs. Of course, putting one's flare on a classic is always...
Khan Academy
Intro to Variables, Computer Programming
What are variables, and why do I need them? These are the questions answered in this basic computer programming video. The author stresses the importance of how the equal sign used in math class has a different meaning than the equal...
Khan Academy
Looping Through Arrays, Computer Programming
In computer programming, loops and arrays are made for each other. This video describes adding a while loop to print out each element in an array and then doing the same procedure using a for loop.
Curated OER
Alice Computer Programming
Learners explore multimedia components. In this science inquiry lesson, students read "Invitation to the Game" by Monica Hughes and they use the Alice Computer Programming System to better understand population dynamics.
Khan Academy
What is Programming?, Intro to JS: Drawing and Animation, Computer Programming
It's time to unleash your class's inner geek. This introductory video starts one on a path of learning to code. It is the first in a series of videos that help you learn the fundamentals of coding. The series focuses on producing art and...
Khan Academy
More Mouse Interaction, Computer Programming
Creating interactive programs can be very exciting for new computer programmers. The author shows how to use mouseIsPressed within a conditional statement to create a small JavaScript program that responds to the user's mouse press.
Khan Academy
Object Methods, Intro to JS: Drawing & Animation, Computer Programming
This video shows young programmers how to use the same concept to duplicate objects with different properties and attach functions to them. This method allows functions to be easily called with various objects.
Khan Academy
Intro to Objects, Computer Programming
When you introduce objects and object-oriented programming to your coding students, you are starting them on an important path. This introductory video shows how to replace the use of many variables with the use of a single object...
Khan Academy
Modifying Objects, Computer Programming
Similar to using variables, object properties can be changed in the program. However, you can also dynamically add new properties while the program runs. The video shows how to define an object, use an object property, change an object...
Khan Academy
Arrays of Objects, Intro to JS: Drawing & Animation, Computer Programming
Expand your beginning coder's use of objects in programs by looking at examples where you can change code to define and use objects in arrays and pass objects as parameters to a function. All of this leads to a deeper understanding of...
Khan Academy
Intro to While Loops, Computer Programming
Repetitive tasks, like the scenes from the movie Ground Hog Day, are common in computer programs. But how exactly do you program a piece of code to repeat specific instructions? This is where the While loop comes in handy. This video...
Khan Academy
Incrementing shortcuts, Computer Programming
Text messages full of abbreviations can be easier to understand once you know what the letters stand for. The same goes for reading code because computer programmers always devise ways to reduce typing. One typical line of code that...
Khan Academy
Function Return Values, Computer Programming
Functions that do calculations usually need to return a value. In this video, a function calculates and returns the total number of donuts eaten based on the years someone has been alive. Hopefully, your charges will have eaten much less...
Khan Academy
Logical Operators, Computer Programming
As the author in this video states, "Life is complex." To handle this complexity, programming languages use something called Boolean operators. In a simple JavaScript code example, this video shows how to set up a conditional statement...
Khan Academy
If/Else - Part 1, Computer Programming
Do it, or else! In conversation, this sounds like an ultimatum, but when writing code, it's a normal way to communicate with a computer. This video shows how to extend our previously used conditional if statement to include the else...
Khan Academy
If/Else - Part 2, Computer Programming
This is the second part of the introductory video on the if statement. It looks specifically at the else if clause in JavaScript code. Two examples are shown: one where the options are mutually exclusive and could have been programmed...
Khan Academy
Intro to Arrays, Computer Programming
Explore more cool programming features by learning how to use arrays in JavaScript code to tackle lists or sequences through a single variable. This video introduces arrays and specifically shows how they are defined and used.
Khan Academy
Local and Global Variables, Computer Programming
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...
Khan Academy
Object Inheritance, Intro to JS: Drawing & Animation, Computer Programming
There is an easier way to share functions among objects. The fifth section of a six-part series on object-oriented design introduces the concept of object inheritance. The coding helps pupils create a base object type that has all the...
Khan Academy
The Power of the Docs, Intro to JS: Drawing and Animation, Computer Programming
While learning to code is an interesting academic pursuit in its own right, it also has other learning benefits. For one, coders learn how to learn. They continually explore, test, and draw conclusions about how certain things work. The...
Khan Academy
If Statements, Computer Programming
This video continues the Khan Academy tutorials and activities on writing code in JavaScript. Here, we are introduced to the conditional if statement. The result is a cute program that produces a bouncing ball. Your young programmers...
Khan Academy
Functions, Computer Programming
The next step in your class's development as young programmers is learning to define and use a simple function in JavaScript code. Younger students may require some additional explanations to help highlight the importance of functions....
Khan Academy
Function Parameters, Computer Programming
Learn how functions in coding are even more helpful when you can pass parameters to them. The author shows how to modify a simple JavaScript function to have two parameters that help you position a repeated drawing to the correct place...
Khan Academy
Booleans, Computer Programming
As one accumulates more life experiences, there are fewer and fewer things that are strictly one thing or another. There always seems to be some gray area or middle ground. Not so with Boolean data types! We are in a world of only two...