Into the Putts explainer

Aim of the puzzle: Add parameters to a function declaration.
Walk through of solution: A parameter is a special type of variable that is used to specify the input of a function.

Parameters are defined inside the parentheses () of a function declaration, and behave like a variable inside a function. They only exist inside the function declaration.

In this puzzle, the underPar() function has 2 parameters, score and par. The function then returns the par minus the score.

At the bottom of the code, the function is called with 2 arguments, for example, 10 and 11. Whichever number is placed in the parentheses first will serve as the score (as that is the first parameter), and the second number will become the par. The function will then return 11 - 10, or 1.
Sample code solution:

function underPar(score, par) {
    return par - score;

console.log(underPar(10, 11));

Javascript Concepts: Parameters, Arguments, Functions, Return Statements