← Back to challenges

Check If It's a Title String

JavaScriptHardformattingvalidationstringslanguage_fundamentals

Instructions

Check if a string title is a title string or not. A title string is one which has all the words in the string start with a upper case letter.

Examples

checkTitle("A Mind Boggling Achievement") ➞ true

checkTitle("A Simple Java Script Program!") ➞ true

checkTitle("Water is transparent") ➞ false

Notes

N/A

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Is the Average of All Elements a Whole Number?