Some function arguments are used. Argument can be thought of as a function of the input. The first function is used to create the function keywords. The name of the function to specify the number of arguments in brackets are fast. If multiple arguments comma (,) is used to denote separately. No value as arguments, strings, variables, or even any other function can be used. For example document.write (Math.abs (-55.69));
var result = value1 + value2;
Notepad: to open a file type from the menu at the top of layer code by clicking on the Save as File name: index.html, Save as type: All files, save and open the index.html file with the Mozilla Firefox look like the image shown below.
function Add_value (value1, value2) Add_value the name of the function have been created, (value1, value2) has been directed by a function of two arguments.
var result = value1 + value2; By adding the two variables passed as arguments to save the result as a variable has been ordered.
return result; The result has been instructed to return the variable value.
document.write (Add_value (10,15)); Through the input of the two arguments 10 and 15 Add_value () function is called. As a result, the browser is 10 + 15 = 25 to 25 will be displayed.value a result of the return.
document.write (Math.abs (-55.69)); In the case of the argument has been used as a function. Math.abs (-55.69) of the tuitohost 55.69 -55.69 will return.