When we write a computer program, we’re giving the computer a set of instructions for what we want it to do. Just like we can tell a dog to “sit” or “beg”, we can tell a computer to “add” or “print”. A computer isn’t as furry as a dog, but fortunately, it’s a lot more reliable! And just a bit better at math…
There are many languages we can use to write computer programs. Here on Khan Academy, we’ll use our live editing environment with the JavaScript language.
Let’s start with a simple “Hello World” program, the first program of many new programmers. Our goal is to get the computer to display “Hello World” somewhere on the screen.
That’s as simple as:
println("Hello, World");
-
Section 1