Skip to content

Instantly share code, notes, and snippets.

@iojohnso
Created February 15, 2013 13:22
Show Gist options
  • Select an option

  • Save iojohnso/4960334 to your computer and use it in GitHub Desktop.

Select an option

Save iojohnso/4960334 to your computer and use it in GitHub Desktop.
Quick example of how to write a function in javascript...
// ------------------------------------------------------
// Hey, this just an example, but you get the idea
// ------------------------------------------------------
// Simple function
function alertUser(message){
// a popup will occur here listing out the desired message;
alert(message);
}
@iojohnso
Copy link
Copy Markdown
Author

Someone else jumps in and offers suggestions...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment