Summary: In this video we discuss dynamic functions. We create dynamic functions using the Function constructor. We provide to the constructor the parameters as well as the body of the function. To start, we prompt the user for the values of the parameters (a and b in this case). The prompt we initiate a dialog where the user can enter the values. But what is interesting in this case is that we prompt the user for the function body. In the body you can enter anything you want the function to do. Once we collect all that information (parameters and function body), we trigger the function and display the values on the page
Methodology of the development of example: Good coding standard and simplified design.
Technology Used: JavaScript – Core language Concepts
Keywords: CSS, JavaScript, HTML, function, var, script, document, writeln, Function, prompt.