JavaScript
hello.js
console.log("Hello, world");
$ run hello —lang en
The first program anyone writes, given a page of its own. It is saying hello in English right now — tap the button and it switches.
Every greeting the button cycles through, listed plainly so nothing depends on a click.
Copy any of them into a fresh file and you have a working program.
hello.js
console.log("Hello, world");
hello.py
print("Hello, world")
hello.go
fmt.Println("Hello, world")
hello.rs
println!("Hello, world");
hello.rb
puts "Hello, world"
hello.c
printf("Hello, world\n");
Brian Kernighan printed it in a Bell Labs tutorial for the B language. Two words, and every language since has had to pass the test.
If it prints, your toolchain works: compiler found, path set, output stream open. Developers still start every new machine here.
Ten greetings live on this page, from Hindi to Japanese. The button below walks through all of them, one tap at a time.
The counter is honest: it only moves when you press the button.
0
hellos said on this visit