Skip to content

Instantly share code, notes, and snippets.

@emkay
Created November 8, 2011 02:20
Show Gist options
  • Save emkay/1346824 to your computer and use it in GitHub Desktop.
Save emkay/1346824 to your computer and use it in GitHub Desktop.
Javascript hello world
document.writeln('hello world!'); // using the document object to directly write to the page
alert('hello world!'); // issuing an alert dialog box.
console.log('hello world!'); // writing to the browser console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment