Skip to content

Instantly share code, notes, and snippets.

@chbaranowski
Created October 25, 2010 19:56
Show Gist options
  • Save chbaranowski/645615 to your computer and use it in GitHub Desktop.
Save chbaranowski/645615 to your computer and use it in GitHub Desktop.
Funktion Deklaration und Aufruf in JavaScript - Demo SOTE Vorlesung
// Die Funktion wird deklariert mit einem Übergabeparameter und einem return Wert true.
function sayHello(message){
alert('Hello World : ' + message);
return true;
}
// Die Methode wird aufgerufen mit dem Parameterwert ' to JavaScript!'
sayHello(' to JavaScript!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment