Skip to content

Instantly share code, notes, and snippets.

@renepardon
Created May 1, 2012 22:08
Show Gist options
  • Select an option

  • Save renepardon/2571835 to your computer and use it in GitHub Desktop.

Select an option

Save renepardon/2571835 to your computer and use it in GitHub Desktop.
Where is the difference between anonymous function and private function?
function Konstruktor()
{
var privat = 'blubb';
function privateMethode()
{
alert (privat);
}
var anonymeMethode = function()
{
globaleMethode();
}
globaleMethode = function()
{
privateMethode()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment