As crockford says “If a value is a function, we can consider it a method”. Let us see a simple example that shows how to use a closure and hide a member.
Any attempt to call deleteEmployee will result in the following error:
Will you give this article a +1 ? Thanks in advance