JavaScript for Beginners
help
Lessons:

JavaScript for Beginners

Welcome to the beginner course on JavaScript (also commonly known as JS). In this course, you will learn how to code in JS, a flexible yet powerful programming language that is used all over the web. Some of the most popular Internet companies like Facebook and Twitter extensively use JS to add functionality to and enhance their websites.

This course is designed for people who have no prior programming knowledge. In this course, you will learn about fundamental programming concepts through JS. Throughout the course, you will write code to apply what you’ve learned to solve programming problems.

The goal of this mini-course is to see if you like our new learning approach. You do not need to complete this course. You can skip ahead by clicking on lessons and exercises on the left. Feel free to experiment with the exercises. Don't worry about making mistakes. If your solution is incorrect, simply retry by typing your new solution over the old one and press Enter. Ready? Let's get started!

Lesson 1 - Introduction

Simple Addition

Let's get coding! Type in 2 + 3 below and press Enter to see what happens.

 
 
 
 
RUN
Hints:
Show hints

Fun With Text

Let's try using another common element of JS: strings. A string is just a sequence of symbols or characters, like a word or a sentence. Let’s use the name of my favorite language -- JavaScript! Try typing in the word JavaScript between two double quotes, like this: "JavaScript" and press Enter. Make sure to capitalize both the J and the S!

 
 
 
 
RUN
Hints:
Show hints

Combining Text and Numbers

In JS, you can combine both strings and numbers by using the + operator. Try typing "It is currently the year " + 2013; and press Enter.

 
 
 
 
RUN
Hints:
Show hints

Thank you for trying out our new approach on language learning. Videos, glossary, and Q&A are not included here since we just want to concentrate on this new learning approach.

You can jump to different exercises by clicking on the console boxes or by clicking on the lessons and exercises on the navigation/progress panel.

The goal of this mini-course is to see if you like our new learning approach. You do not need to complete this course. You can skip ahead by clicking on lessons and exercises on the left. Feel free to experiment with the exercises. Don't worry about making mistakes. If your solution is incorrect, simply retry by typing your new solution over the old one and press Enter.