Function inside another function in Javascript

We can create a function inside another function, with variables inside the function that cannot be accessed from outside. In this example we calculate the sum of 20 for any number we enter in the function. The value 20 is unchangeable from an inner function since we are always interested in doing the sum of 20.
Comments

PHP Captcha


Interesting Articles