Why `Hello, World!` is the first program? | Brief history?

"Hello, World!" is the first program because it's a simple and friendly way to start learning how computers work.

Imagine you have a toy robot that only understands one command: "Hello, World!" When you say that, the robot lights up or says something fun, just like when your mom says “Good morning!” to wake you up. That’s what "Hello, World!" does for computers.

Why it's used so much

When people start learning how to write programs, they need a simple example. "Hello, World!" is perfect because:

  • It shows the computer that the person knows how to talk to it.
  • It doesn’t need any complicated parts, just a few words.
  • It works on almost every kind of computer, like your tablet or your dad’s phone.

How it started

A long time ago, in 1970s, a man named Brian Kernighan used "Hello, World!" in a book about learning to code. People loved how simple and fun it was, so they kept using it ever since, like passing on a favorite toy from one kid to the next.

Take the quiz →

Examples

  1. A child learns to say 'Hello, World!' using a simple computer program.
  2. A teacher uses 'Hello, World!' to show how computers work.
  3. A new programmer writes their first line of code with 'Hello, World!'.

Ask a question

See also

Discussion

Recent activity