A function declaration is a statement that declares a function with a specified name, function body, and parameters (if any). The function can be called anywhere in the code, including before its ...
O jeito mais básico de definir funções em JavaScript é através da function declaration, toda função de declaração começa com a palavra reservada e obrigatória function, seguida pelo nome da função ...