Coding for Kids

JavaScript Tutorial

Learning to code is exciting. When you master the basics, you can do all sorts of things. You can make websites that are interactive. You can make small games, like tic-tac-toe and guess my number. You can even make bigger games as your skills grow.

Why is coding good to learn?

Where do I write my code?

You have lots of options available to you across the vast internet and on your own computer. Here are two of my suggestions.

What's the best way to learn?

If you're just diving in, this is my suggested order. The navigation buttons follow this process. If you're learning JavaScript another way, like creating the Room Adventure game, you'll learn these concepts in a different order that allows you to build the game.

  1. As with most things: practice, practice, practice.
  2. Start by looking over and practicing basic punctuation.
    • Every computer language has its own nuances in how you have to write code.
    • It's just like learning a spoken language, like German, Spanish, or Italian. They're all different.
  3. Dig into variables next.
    • You can't do much in a program without variables.
    • Variables let your program adapt to situations.
  4. Look at logical operators and conditions next.
    • These allow your program to make decisions.
  5. Loops come after that.
    • These are important for when your program needs to repeat actions over and over.
  6. Learn about objects.
    • These are special variables that hold lots of information.
    • They can organize your other variables well.
  7. Follow up with functions.
    • These are small chunks of code that be be used over and over in your program.

Intent

I put this site together as a reference for many programming concepts in JavaScript. There is a lot more you can do that I may not get into. This isn't intended as a definitive guide, but it's more than enough to get you started on some major projects.

Happy Coding!

—Dr. Wolf