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 edff6ec

Browse files
author
Coding Money
committed
5-titlecase exercise
1 parent e30c7d5 commit edff6ec

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎completed_exercises/5-titlecase.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// --- Directions
2+
// Write a function that accepts a string. The function should
3+
// capitalize the first letter of each word in the string then
4+
// return the capitalized string.
5+
// --- Examples
6+
// capitalize('this is mukhtar from coding money') --> 'This Is Mukhtar From Coding Money'
7+
// capitalize('what is titlecase?') --> 'What Is Titlecase?'
8+
// capitalize('titles of books, movies, songs, plays and other works') --> 'Titles Of Books, Movies, Songs, Plays And Other Works'
9+
10+
function capitalize(str) {}
11+
12+
13+
console.log(capitalize('this is mukhtar from coding money'));

0 commit comments

Comments
(0)

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