File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
1-js/05-data-types/05-array-methods/1-camelcase Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
1414camelize (" background-color" ) == ' backgroundColor' ;
1515camelize (" list-style-image" ) == ' listStyleImage' ;
1616camelize (" -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 ` .
You can’t perform that action at this time.
0 commit comments