Functions

JavaScript functions are the things that does something to its parameters. For example:

function multiply_2_parameters(parameter1, parameter2)
{
var product = parameter1 * parameter2;
document.write("product");
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License