Created
January 1, 2024 14:32
-
-
Save HashirHussain/75ea6ec5103440a2ba6845bf6087cf7a to your computer and use it in GitHub Desktop.
Complete the capitalizeFirstLetter below while being sure to capitalize the initial letter of each word in the provided string.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Complete the capitalizeFirstLetter below while being sure to capitalize the initial letter of each word in the provided string. | |
e.g. | |
const str = "How can mirrors be real if our eyes aren't real" | |
str.capitalizeFirstLetter() //-> "How Can Mirrors Be Real If Our Eyes Aren't Real" | |
**/ | |
String.prototype.capitalizeFirstLetter = function () {} |
Author
HashirHussain
commented
Jan 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment