Please enable JavaScript to use CodeHS

What You Can Do With Computers

What is a computer?

A computer is a machine that follows instructions. It can listen, show pictures, do math, play music, and lots more. Those instructions are called code.

Beginner ~8 min Elementary
The Big Idea

Computers are everywhere

A computer is not just a laptop. A tablet is a computer. A phone is a computer. A game console is a computer. Even some toys, watches, and cars have computers inside.

Computers are special because they can do many different things. They can show videos, help you draw, play music, do math, and talk to other computers far away.


How It Works

Input and output

Every computer takes in information, does something with it, and sends information back out.

  • Input is what you give the computer. Typing on a keyboard, tapping a screen, and using a microphone are all input.
  • Output is what the computer gives back. A picture on the screen, sound from speakers, or vibrations from a controller are output.

When you press a key, the computer sees the input and decides what output to show.


Vocabulary

Code is instructions

Code is a list of instructions that tells a computer what to do. It is like a recipe. A recipe tells you step by step how to make a sandwich. Code tells a computer step by step how to draw a cat or move a character in a game.

People write code in special languages that computers understand. Then the computer follows the instructions very fast and never gets bored.

Fun fact: a computer can do billions of tiny steps in one second. That is why games look smooth and websites load quickly.


Interactive

Give the robot commands

Click a command to tell the robot what to do. This is a little like writing code.

🤖
Waiting for a command...

Your Turn

Check yourself

Name one computer you have at home or school. What input does it use? What output does it give?

Your answer:

Sample answer: A tablet is a computer. I tap the screen to give input, and it shows pictures and sounds as output.


Check Yourself

Quick quiz

1. What is code?

2. Which of these is an input?

3. Where can you find a computer?

Keep learning

You know what a computer is. Next, learn how to give a computer instructions.

First tutorial in the What You Can Do With Computers series.