HTML and CSS Reference
In-Depth Information
sessiOn 10.2 visUAL OveRvieW
A function is a collection of
commands that performs an
action or returns a value.
A function can contain
parameters , which are variables
associated with the function.
Single-line comments are
prefaced by the // characters
and are used to add comments
in-line with JavaScript code.
Multi-line comments are
enclosed within the /*
and */ symbols, and are
used to add comments
as blocks of text.
A function can be called using the
statement function ( values ), where
function is the function name and
values represents one or more values
passed to the function parameters.
Search WWH ::




Custom Search