Skip to content

Commit 0a6e147

Browse files
authored
Update task.md
1 parent 2a20f17 commit 0a6e147

File tree

1 file changed

+5
-5
lines changed
  • 1-js/02-first-steps/14-function-basics/4-pow

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
importance: 4
1+
importância: 4
22

33
---
44

5-
# Function pow(x,n)
5+
# Função pow(x,n)
66

7-
Write a function `pow(x,n)` that returns `x` in power `n`. Or, in other words, multiplies `x` by itself `n` times and returns the result.
7+
Escreva uma função `pow(x,n)` que retorna `x` no expoente `n`. Ou, em outras palavras, multiplica `x` por si mesmo `n` vezes e retorna um resultado.
88

99
```js
1010
pow(3, 2) = 3 * 3 = 9
1111
pow(3, 3) = 3 * 3 * 3 = 27
1212
pow(1, 100) = 1 * 1 * ...* 1 = 1
1313
```
1414

15-
Create a web-page that prompts for `x` and `n`, and then shows the result of `pow(x,n)`.
15+
Crie uma página web that prompts para `x` e `n`, e depois mostre o resultado de `pow(x,n)`.
1616

1717
[demo]
1818

19-
P.S. In this task the function should support only natural values of `n`: integers up from `1`.
19+
P.S. Nesta tarefa, a função deve suportar apenas valores naturais de `n`: inteiros acima de` 1`.

0 commit comments

Comments
 (0)