Function Declaration

A named function created with the function keyword as a statement.

What is Function Declaration in JavaScript?

Function Declaration — A named function created with the function keyword as a statement.

function total(price, quantity) {
    return price * quantity;
}

Level: Apprentice · More JavaScript terms at this level

Updated