console.log("Hello World!");
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
# Python 2
print "Hello World!"
# Python 3
print("Hello World!")
#include <iostream>
int main()
{
std::cout << "Hello World!";
}
<style type="text/css">
h1 {
color: DeepSkyBlue;
}
</style>
<h1>Hello World!</h1>
using System;
public class HelloWorld
{
public static void Main()
{
Console.WriteLine("Hello World!");
}
}
#include<stdio.h>
main()
{
printf("Hello World!");
}
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
#!/bin/bash
echo "Hello World!"
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Hello World!");
[pool drain];
return 0;
}
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello World!")
}
}
class HelloWorld {
constructor(public greeting: string) { }
sayHello() {
return "<h1>" + this.greeting + "</h1>";
}
};
var greeter = new HelloWorld("Hello World!");
console.log(greeter.greet());