Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 6: Functions in JavaScript!

Instruction

Invocation of Functions

For the declaration of functions, we have seen 3 variants. For their invocation, there are also 3 variants. The declarations and invocations are independent of each other and you can arbitrarily combine them.

Conventional Invocation

The conventional invocation variant uses the function name followed by parenthesis ().

"use strict";
function duplication(p) {
 return p + "! " ...