Pick one language
Beginners lose more time choosing a language than learning one. The ideas that matter at the start (values, variables, conditions, loops, functions) are the same in every mainstream language, and they carry over when you switch later.
JavaScript is a practical first choice because every web browser already runs it. You can write and run code on any computer with no install, which is how the practice exercises on this site work.
Make it a small daily habit
Short, regular sessions beat long, rare ones. Thirty minutes most days is enough to make steady progress, and it is easy to keep up. Stop each session with a note of where you got to, so the next one starts fast.
Pick a fixed time if you can, such as before work or after dinner, and keep the editor one click away. The fewer decisions it takes to start, the more often you will start, and starting is most of the battle in the first weeks.
A four-week plan
| Week | Learn | Practise |
|---|---|---|
| 1 | Values, variables, arithmetic, strings, functions and return | Exercises 1 and 2: add, even or odd |
| 2 | Conditions (if, else), comparison, loops (for, for...of) | Exercises 3 to 5: largest number, reverse, count vowels |
| 3 | Arrays and their methods, building a result step by step | Exercises 6 to 8: FizzBuzz, palindrome, factorial |
| 4 | Objects as lookups, Set, reading error messages | Exercises 9 and 10: remove duplicates, count words |
For the "learn" column, the free JavaScript Guide on MDN covers each topic in order. MDN also runs a free web development course if you want HTML and CSS alongside.
Practise more than you read
Reading about loops feels like progress, but you only find out what you understood when you write one and it does the wrong thing. A good split is about a third reading and two thirds writing code.
Practice works best when it tells you quickly that you are wrong, and why. That is what tests are for: a function is called with fixed inputs, and each answer is checked. When a test fails, read the input, the expected value and what you got before changing anything. The getting unstuck guide walks through that.
What a good session looks like
- Five minutes of review. Re-solve yesterday's exercise from a blank editor, without looking.
- Ten minutes of reading. One topic, such as loops, with the examples typed out and run, not just read.
- Fifteen minutes of practice. One new exercise. Use hints one at a time, and only after you have tried something.
- One line of notes. What tripped you up today. These notes become your personal list of mistakes to watch for.
What free resources cannot do
Free material covers everything a beginner needs to learn. What it does not give you is someone who notices you are stuck. You can replace that with habits: run your code often, read the error before changing anything, explain the problem out loud, and ask in a beginner forum with the exact error and a short piece of code that shows it. Writing that question often reveals the answer before you post it.
How to tell you are improving
- You can predict what a short piece of code returns before running it.
- Error messages point you to the problem instead of scaring you.
- You need fewer hints for the same kind of exercise.
- You can solve an exercise again a week later without looking.
What to do after four weeks
Build something small that you want to exist: a tip calculator, a word counter, a page that picks a random recipe. A real project brings up questions no exercise list will, and finishing one teaches more than starting three. Keep it small enough to finish in a weekend.
Key points
- Pick one language and stay with it for the first months; JavaScript needs no install.
- Short daily sessions beat long weekly ones.
- Write more code than you read, and run it often.
- Use tests to find out quickly when you are wrong, and hints to find out why.
- Re-solve old exercises from a blank editor to check what stuck.
- After a month, build one small project of your own and finish it. A finished small project teaches more than an unfinished big one, and it gives you something real to show and to keep improving.
Try it on a real exercise
Write a function, run the tests, get a hint if it fails.
Links checked 4 December 2026.