About 330,000 results
Open links in new tab
  1. Capitalize first letter of each word in JS - Stack Overflow

    Mar 13, 2017 · Just use: _.startCase(_.capitalize('foo bar')) and even if you have a String like FOO BAR, it will transform in Foo Bar. The regexp /\b\w/ matches a word boundary followed …

  2. JavaScript String Methods - W3Schools

    ECMAScript 2017 added two new string methods to JavaScript: padStart() and padEnd() to support padding at the beginning and at the end of a string. JavaScript String padStart() The …

  3. JavaScript function: Converts the first letter of each word of a …

    Feb 28, 2025 · JavaScript exercises, practice and solution: Write a JavaScript function that accepts a string as a parameter and converts the first letter of each word into upper case.

  4. Understanding JavaScript String Methods – TheLinuxCode

    Dec 10, 2024 · In this comprehensive beginner‘s guide, you‘ll learn step-by-step how to capitalize the first letter of any word using basic JS string methods. Before diving into the capitalization …

  5. Opening a letter - CodePen

    You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can …

  6. JavaScript Strings: The Basic Methods and Functions | JavaScript

    Learn the basics of JavaScript Strings with code examples and small tutorials and descriptions on how each string function and method works.

  7. Finding first alphabetical letter in a string - Javascript

    May 13, 2014 · function numsNletters(alphanum) { firstChar=alphanum.match(/[a-zA-Z]/).pop(); numsLetters=alphanum.split(firstChar); numbers=numsLetters[0]; // prepending the letter we …

  8. Handling text — strings in JavaScript - Learn web development

    Apr 11, 2025 · HTML provides structure and meaning to text, CSS allows us to precisely style it, and JavaScript offers many features for manipulating strings. These include creating custom …

  9. Capitalize the First Letter of a String in JavaScript

    Jun 15, 2020 · Capitalizing the first letter of a JavaScript string is easy if you combine the string toUpperCase() method with the string slice() method. const caps = …

  10. Get first letter of each word in a string, in JavaScript

    Nov 24, 2020 · Getting first letter of any Unicode word in JavaScript is now easy with the ECMAScript 2018 standard: /(?<!\p{L}\p{M}*)\p{L}/gu

  11. Some results have been removed
Refresh