Instructional Video
Khan Academy

More While Loops: Balloon Hopper

6th - Higher Ed
Starting with an empty computer screen for a coder can be as intimidating as a bare canvas to a painter or a blank sheet of paper to a writer. Where do you start? If you know what you are trying to build, then you just pick something and...
Instructional Video6:51
Khan Academy

Object Types

6th - Higher Ed
Young coders learn how to use a function to create objects with similar properties and to allow for the creation of objects repeatedly with a short video that makes the point that coding with a function eliminates repetitions.
Instructional Video4:54
Khan Academy

Object Methods, Intro to JS: Drawing & Animation, Computer Programming

6th - Higher Ed
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.
Instructional Video6:24
Khan Academy

Intro to Drawing

5th - Higher Ed
Leap right into programming in JavaScript with this first video in the series. Start off with drawing a rectangle. Remember computers only know what you tell them. So you need to specify exactly where on the screen you want the...
Instructional Video6:12
Khan Academy

Arrays of Objects, Intro to JS: Drawing & Animation, Computer Programming

6th - Higher Ed
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...
Instructional Video5:51
Khan Academy

Modifying Arrays, Computer Programming

6th - Higher Ed
An instructional video combines arrays, loops, and mouse clicks. The author shows how to modify JavaScript code to add a balloon each time the mouse is clicked. The video also shows two different ways to add to the end of the array: one...
Instructional Video5:22
Khan Academy

Looping Through Arrays, Computer Programming

6th - Higher Ed
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.
Instructional Video4:54
Khan Academy

Modifying Objects, Computer Programming

6th - Higher Ed
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...
Instructional Video5:26
Khan Academy

Intro to Objects, Computer Programming

6th - Higher Ed
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...
Instructional Video5:00
Khan Academy

Intro to Arrays, Computer Programming

6th - Higher Ed
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.
Instructional Video6:07
Khan Academy

For Loops! A New Kind of Loop, Computer Programming

6th - Higher Ed
Now that you are familiar with while loops let's look at a new type of loop: the for loop. This video shows the three parts of the for loop: the start, the Boolean test, the value change, and how it differs from a while loop.
Instructional Video6:00
Khan Academy

Nested For Loops, Computer Programming

6th - Higher Ed
A loop within a loop is called a nested loop. It expands the repeating code based on two different variables. The video shows an example of drawing an image across and down a screen.
Instructional Video4:46
Khan Academy

Intro to While Loops, Computer Programming

6th - Higher Ed
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...
Instructional Video5:53
Khan Academy

If/Else - Part 2, Computer Programming

6th - Higher Ed
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...
Instructional Video4:45
Khan Academy

If/Else - Part 1, Computer Programming

6th - Higher Ed
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...
Instructional Video6:37
Khan Academy

Booleans, Computer Programming

6th - Higher Ed
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...
Instructional Video4:32
Khan Academy

Logical Operators, Computer Programming

6th - Higher Ed
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...
Instructional Video4:32
Khan Academy

Function Return Values, Computer Programming

6th - Higher Ed
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...
Instructional Video5:05
Khan Academy

Function Parameters, Computer Programming

6th - Higher Ed
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...
Instructional Video4:56
Khan Academy

Functions, Computer Programming

6th - Higher Ed
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....
Instructional Video4:29
Khan Academy

More Mouse Interaction, Computer Programming

6th - Higher Ed
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.
Instructional Video3:50
Khan Academy

Incrementing shortcuts, Computer Programming

6th - Higher Ed
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...
Instructional Video5:16
Khan Academy

More Drawing!

5th - Higher Ed
Now let's expand our coding to include ellipses, rectangles, and lines using this easy-to-follow video. We are also adding some formality to the language we use by defining the following terms: function, parameters, pixels, and the x and...
Instructional Video4:27
Khan Academy

Intro to Coloring

5th - Higher Ed
Programming without color is like watching the Wizard of Oz in black and white, you understand what's going on, but you lose the visual impact of the story. Here, we learn to add color to the images we are coding. Background,...