Skip to Main Content

Learn to Code: The Full Beginner's Guide


If you've been looking to learn how to code, we can help you get started. Here are 4.5 lessons on the basics and extra resources to keep you going.

Variables and Basic Data Types
In our first lesson we're going to be taking a look at how to store different kinds of variables

Working With Variables
Now that you know a thing or two about basic variables and data types, we're going to play around with them and see how they work.

Arrays and Logic Statements
In this lesson we're going to start with arrays, which are a more complex type of variable, and then move on to for loops and if statements, which let you add conditional logic to your code. This is where things get tough, but also very cool.

Understanding Functions and Making a Guessing Game
In our last lesson we're going to learn all about functions and then write one to make a very simple JavaScript guessing game.

Best Practices and Additional Resources
In our "Learn to Code" epilogue we take a look at some programming best practices and provide a whole bunch of resources to help you take the next steps.

Want this all in PDF form? Reader Melde got bored and decided to make a PDF version of the lessons. Thanks Melde! You can download it here.


You can contact Adam Dachis, the author of this post, at [email protected]. You can also follow him on Twitter and Facebook