How to use object-oriented concepts in JavaScript to make more re-usable code.
Make your code more re-usable by grouping it into functions, and then make those functions accept parameters and return values.
If you're new here, watch our intro video and get a brief tour of our programming course. Then get coding!
Learn how to write JavaScript code that is easy to read and understand, with good use of indentation, spacing, naming, and comments.
Learn how to store complex data in objects.
Learn how to make programs that draw shapes based on the mouse location, like painting apps.
Learn how to animate your drawings.
We'll show you how to color and outline your shapes!
We'll cover how to use variables to hold values, animate your drawings, and more.
Repeating something over-and-over? Loops are here to help!
Store multiple values in your variables with arrays!
Now that you understand the basics of programming, learn techniques that will help you be more productive and write more beautiful code.
How can you figure out what's wrong with your code? Learn tips and tricks for debugging your programs.
Teach your program to make decisions!
We'll show you the basics of programming and how to draw shapes.
Learn how to use variable expressions to resize parts of your drawing relative to other parts. (This requires a bit more math, so if you don't feel you have a good grasp of fractions yet, you can skip over this.)
Learn how to display text on the canvas, resize it, color it, and animate it.
All video content by Khan Academy is under their license: CC by NC SA
Website created using Khan Academy Static Downloader