It provides an easy-to-follow overview of the language, split into three main parts: language syntax, working with the browser, and working with Node.js. The book is then split into a further 21 chapters that are easily digestible and include plenty of code samples that you can play around with and edit live. There are also five project chapters that allow you to get stuck into coding small projects — including a virtual ecosystem, your own programming language, a platform game, a paint program, and a skill-sharing website.
It feels like W3Schools has been around forever, and for good reason – it’s an excellent resource for beginners that's crammed full of examples. Best of all, you can edit the examples on the site live and see the results of your changes on the front-end.
If you’re an interactive and hands-on learner, popular online code school Codecademy offers a free 10-hour course for beginners. It’s divided into eight units that cover concepts including functions, loops, control flow, data structures, and objects. There’s also a final project that involves building a game from scratch – but you’ll have to upgrade to Codecademy Pro to get access.
The great thing about Codecademy is that the courses are interactive. Each lesson is displayed in a pseudo console in your browser where you need to enter code to complete a set of instructions. You can then save and submit your code to move on to the next lesson.
Completing a course like this is a great way to complement any theory you’ve learned, allowing you to put it into practice.
The site is set out in four main sections —objects, functions, arrays, types, and core — and provides lots of code examples and external links to help you get your head around what’s going on.
It feels confusing to get your head into this guide at first, but it’s actually set out in a fairly logical manner with a table of contents conveniently located at the top. While the tutorials are pretty bare bones, the information is attributed so you can click through to other sites for further reading.
As with learning any new skill, the more you read and practice, the easier learning will become and the sooner you’ll be proficient in another language.