Skip to content

Commit 4e5f6b6

Browse files
author
Adria Vieira
committed
task camelcase translated
1 parent bba9814 commit 4e5f6b6

File tree

1 file changed

+5
-5
lines changed
  • 1-js/05-data-types/05-array-methods/1-camelcase

1 file changed

+5
-5
lines changed

1-js/05-data-types/05-array-methods/1-camelcase/task.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ importance: 5
22

33
---
44

5-
# Translate border-left-width to borderLeftWidth
5+
# Mude border-left-width para borderLeftWidth
66

7-
Write the function `camelize(str)` that changes dash-separated words like "my-short-string" into camel-cased "myShortString".
7+
Escreva uma função `camelize(str)` que mude as palavras separadas por traços como "my-short-string" para palavras em camelCase "myShortString".
88

9-
That is: removes all dashes, each word after dash becomes uppercased.
9+
Ou seja: remova todos os traços, cada palavra depois do traço precisa estar em maiúsculo.
1010

11-
Examples:
11+
Exemplos:
1212

1313
```js
1414
camelize("background-color") == 'backgroundColor';
1515
camelize("list-style-image") == 'listStyleImage';
1616
camelize("-webkit-transition") == 'WebkitTransition';
1717
```
1818

19-
P.S. Hint: use `split` to split the string into an array, transform it and `join` back.
19+
P.S. Dica: use `split` para separar a string em um array, transforme-os e os junte de volta usando `join`.

0 commit comments

Comments
 (0)