Function declaration and invocation
A function can be declared with the <div>
element. Function name is specified by the id, and optional parameters are specified by the classes of the element:
this is compiled as:
Classes can be omitted if function does not require any parameters. Also <return>
can be omitted to make a void function.
Functions can be invoked with <h3>
tag. Function name must be specified with the id (without brackets) and all the children are considered parameters:
is compiled as:
Last updated