Skip to content

Commit c77fadf

Browse files
authored
Update article.md
1 parent 222f48e commit c77fadf

File tree

1 file changed

+5
-5
lines changed
  • 1-js/06-advanced-functions/07-new-function

1 file changed

+5
-5
lines changed

1-js/06-advanced-functions/07-new-function/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11

2-
# The "new Function" syntax
2+
# A sintaxe de "new Function"
33

4-
There's one more way to create a function. It's rarely used, but sometimes there's no alternative.
4+
Existe mais uma maneira de criar uma funcção. Ela é raramente usada, mas as vezes não existe alternativas.
55

6-
## Syntax
6+
## Sintaxe
77

8-
The syntax for creating a function:
8+
A sintaxe para criar uma função:
99

1010
```js
1111
let func = new Function ([arg1[, arg2[, ...argN]],] functionBody)
1212
```
1313

14-
In other words, function parameters (or, more precisely, names for them) go first, and the body is last. All arguments are strings.
14+
Em outras palavras, os parâmetros da função (ou, mais precisamente, os nomes deles) vêm primeiro, e o corpo da função vem por último. Todos os argumentos são `strings`.
1515

1616
It's easier to understand by looking at an example. Here's a function with two arguments:
1717

0 commit comments

Comments
 (0)