You can also define async functions using an async function statement.
A function definition (also called a function declaration, or function statement) consists of the function keyword, followed by
Declarando uma função A definição da função (também chamada de declaração de função) consiste no uso da palavra chave function, seguida por
The Function statement is used to declare the name, parameter and the body of a function.
Functions can be conditionally declared, that is, a function statement can be nested within an if statement.
Funções podem ser condicionalmente declaradas, isso é, uma instrução de função pode ser aninhada dentro de uma instrução if.
The formal parameters list appearing in the function statement could be simple or subscripted variables, arrays or structured variables, or subprograms.
A lista de parâmetros formais que aparece na instrução de função poderia ser variáveis simples ou subscritos, matrizes ou variáveis estruturadas, ou subprogramas.
The function statement (see function for details)
This is less efficient than declaring a function with a function expression or function statement and calling it within your code, because such functions are parsed with the rest of the code.
Isso é menos eficiente que declarar uma função async com a expression async function e chama-la com seu código, porque essas funções são tratadas com o resto do código.
The main difference between a function expression and a function statement is the function name, which can be omitted in function expressions to create anonymous functions.
A principal diferença entre uma expressão de função e a declaração de uma função é o nome da função (function name), o qual pode ser omitido em expressões de funções para criar funções anônimas.
Description An async function expression is very similar to, and has almost the same syntax as, an async function statement.
Descrição Uma expressão async function é muito similar, e tem quase a mesma sintaxe de uma declaração async function.
Functions can be conditionally declared, that is, a function statement can be nested within an if statement, however the results are inconsistent across implementations and therefore this pattern should not be used in production code.
Criando funções condicionalmente. Funções podem ser condicionalmente declaradas, isso é, uma instrução de função pode ser aninhada dentro de uma instrução if.
You can also use a variant of the CREATE FUNCTION statement to install a user-defined function (UDF) defined by a plugin.
Você também pode usar uma variante da instrução CREATE FUNCTION para instalar uma função definida pelo usuário (UDF), definida por um plugin.
The SQL administration API consists of two built-in functions: admin() and task(), which are defined in the sysadmin database and invoked with the EXECUTE FUNCTION statement.
A API de administração de SQL é composta por duas funções integradas: admin() e task(), que são definidas no banco de dados sysadmin e invocadas com a instrução EXECUTE FUNCTION.
The CREATE FUNCTION statement registers a user-defined routine.
A instrução CREATE FUNCTION registra uma rotina definida pelo usuário.