JavaScript Demo
JavaScript / HTML/ CSS Code
Output
This Is A Test Sentence With Titlecase testing variables this is a test sentence with small letters to test variables. This Is A Test Sentence With Titlecase this is a test sentence with small letters.
Execute replace method
This Is A Test Sentence With Titlecase testing variables this is a test sentence with small letters to test variables. This Is A Test Sentence With Titlecase this is a test sentence with small letters.
Execute replace method