What is the difference between a private and public funtion?
- by Kyle
I am a new programmer, and I started in C and am now starting to enjoy JavaScript and a tiny bit of PHP more. Lately I've heard the terms 'private' and 'public' functions a lot. Could anybody give an explanation of the both and how they are of use to a programmer?
And I'm probably totally wrong here... but is a
(function(){})
in javascript a private function?