Using functions inside functions with onclick Event in Javascript

We create a javascript function that allows us to calculate the double of a number. The function has another unchangeable internal function that is the one that calculates the double and receives the parameters. We create three html elements to be able to use this function, an input element to receive a number through the screen, a button to indicate when the function must be executed, and a div with id 'show_result' that is where the results will be shown.
Comments

PHP Captcha


Interesting Articles