This is my first post!
What would be better than writing a “Hello, World!” post?
Print “Hello, World!” in every language I used! (I have to admit Docker and Terraform are not languages, but they’re still cool)
Bash
echo "Hello, World!"
BlitzBasic
Print "Hello, World!"
C
printf("Hello, World!");
C++
std::cout << "Hello, World!";
C#
Console.WriteLine("Hello, World!");
Delphi
WriteLn('Hello World');
Docker
docker run hello-world
Go
fmt.Println("Hello, World!")
HTML
<h1>Hello, World!</h1>
Java
System.out.println("Hello, World!");
JavaScript
alert( 'Hello, World!' );
Kotlin
println("Hello, World!")
PowerShell
Write-Host "Hello, World!"
Python 3
print('Hello, World!')
Ruby
puts 'Hello, World!'
Terraform
terraform {
required_version = ">= 0.12.26"
}
output "hello_world" {
value = "Hello, World!"
}
TypeScript
const helloWorld = "Hello, World!"
console.log(helloWorld)