Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js function arguments

                          An Example of a function argument


function printValue(someValue) {
    console.log('The item I was given is: ' + someValue);
}

printValue('abc'); // -> The item I was given is: abc
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #function #arguments
ADD COMMENT
Topic
Name
6+7 =