Learn JavaScript - free tutorials

What is JavaScript?

JavaScript is a programming language that is used for adding interactivity to web pages. Every web browser has a JavaScript engine built-in so you don't need to install anything to get started writing JavaScript and seeing it work. JavaScript files use a .js file extension.

What is JavaScript used for?

JavaScript is used for making web pages dynamic instead of static by adding interactivity such as showing a modal when a user clicks an image, updating the content on a page and loading more content. JavaScript is primarily used as a client-side scripting language which means that it runs on the user's computer but it can also be used as a server-side language with node.js.

How to learn JavaScript

You can start learning JavaScript online with text-based tutorials and references or video tutorials. As you learn, I'd recommend writing your own scripts as it helps you put programming concepts into practice and remember more of what you learned.

When learning JavaScript, you will be learning things like how to select HTML elements in JavaScript, how to create variables, functions, loops, arrays, and objects and how to update or change the content of an HTML page with JavaScript.

You can start learning JavaScript on websites like W3Schools and MDN web docs or if you're looking for video tutorials, you can learn JavaScript on Treehouse, which is where I learned to code. With Treehouse you can learn JavaScript by watching video tutorials, following along by writing the code yourself, and completing code challenges and quizzes to help you solidify what you learned. You'll also earn badges for each section of each course that you complete, which you can then show to potential employers with your Treehouse profile.

By using my link, you can get your first month free on Treehouse with either the "courses" or "courses plus" plan.