Skip to content

Instantly share code, notes, and snippets.

@kegg
Created April 28, 2014 02:13
Show Gist options
  • Save kegg/11360281 to your computer and use it in GitHub Desktop.
Save kegg/11360281 to your computer and use it in GitHub Desktop.
Hello World
<cfset greeting="Hello World!">
<cfoutput>#greeting#</cfoutput>
<cfscript>
WriteOutput("Hello World!");
</cfscript>
<!doctype html>
<html>
<head>
<title>Hello world!</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
alert("Hello World!");
document.write("Hello World!");
var text = document.createTextNode("Hello World!");
document.getElementsByTagName("body")[0].appendChild(text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment