{"version":"1.0","type":"rich","title":"Title Case in JS","description":"The example demonstrates a straightforward text-transformation utility that converts any given string to Title Case, capitalizing the first letter of each word while lowercasing the remaining characters. It operates on a single string input and returns the formatted result. The code relies on the native JavaScript `String.replace()` method with a regular expression (`/\\w\\S*/g`) to match word boundaries, and applies a callback function that uses `charAt()`, `toUpperCase()`, and `substr()` to restructure each word. No external libraries or frameworks are involved, and the function is self-contained, making it a reusable snippet for formatting labels or headings in web applications.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-2dcd099985b434a738781d7a03d60f60?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}