You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/02-first-steps/18-javascript-specials/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,7 +274,7 @@ Cobrimos três maneiras de criar uma função em JavaScript:
274
274
275
275
276
276
- As funções podem ter variáveis locais: aquelas declaradas dentro de seu corpo ou em sua lista de parâmetros. Tais variáveis são visíveis apenas dentro da função.
277
-
- Os parâmetros podem ter valores padrão:`function soma(a = 1, b = 2) {...}`.
277
+
- Os parâmetros podem ter valores padrão:`function sum(a = 1, b = 2) {...}`.
278
278
- As funções sempre retornam algo. Se não houver uma instrução `return`, o valor retornado será `undefined`.
0 commit comments