Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d43a1c

Browse files
committed
Add a question
1 parent 8552938 commit 9d43a1c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

‎README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,3 +1634,32 @@ const count = string => {
16341634
---
16351635

16361636
**[⬆ Back to Top](#javascript-coding-challenges-for-beginners)**
1637+
1638+
## 49. Break camelCase
1639+
1640+
Complete the solution so that the function will break up camel casing, using a space between words.
1641+
1642+
```js
1643+
const solution = str => {
1644+
// Your solution
1645+
}
1646+
1647+
console.log(solution('camelCasingHere')); // camel Casing Here
1648+
console.log(solution('No Camels here')); // No Camels here
1649+
console.log(solution('ABC')); // ABC
1650+
console.log(solution('')); // ''
1651+
```
1652+
1653+
<details><summary>Solution</summary>
1654+
1655+
```js
1656+
const solution = str => {
1657+
return str.replace(/([a-z])([A-Z])/g, '1ドル 2ドル');
1658+
}
1659+
```
1660+
1661+
</details>
1662+
1663+
---
1664+
1665+
**[⬆ Back to Top](#javascript-coding-challenges-for-beginners)**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /