Update README.md
This commit is contained in:
parent
901355a794
commit
35d1436f8a
1 changed files with 20 additions and 0 deletions
20
README.md
20
README.md
|
|
@ -1,13 +1,32 @@
|
|||
# Check If It's a Title String
|
||||
|
||||
## Question
|
||||
|
||||
[Sloth Bytes | 2024-07-23](https://slothbytes.beehiiv.com/p/sus?utm_source=slothbytes.beehiiv.com&utm_medium=newsletter&utm_campaign=impostor-syndrome)
|
||||
|
||||
```
|
||||
Check If It's a Title String
|
||||
Check if a string is formatted as a title. A title string is when every word of the string start with a upper case letter.
|
||||
|
||||
Examples
|
||||
checkTitle("A Mind Boggling Achievement") ➞ true
|
||||
|
||||
checkTitle("A Simple C++ Program!") ➞ true
|
||||
|
||||
checkTitle("Water is transparent") ➞ false
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
This utility checks if a given string is a title string. A title string is a string that has the first letter of each word capitalized and the rest of the letters in lowercase.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Installation](#installation)
|
||||
- [Usage](#usage)
|
||||
|
||||
## Installation
|
||||
|
||||
To use the code in this repository, you need to have [Node.js](https://nodejs.org/en) installed on your machine. Clone the repository to your local system using the following command:
|
||||
|
||||
```
|
||||
|
|
@ -21,6 +40,7 @@ npm install
|
|||
```
|
||||
|
||||
## Usage
|
||||
|
||||
1. Navigate to the repository's root directory.
|
||||
2. Open terminal or command prompt.
|
||||
3. Run the following command to execute the code:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue