About 33,300,000 results
Open links in new tab
  1. JavaScript String toUpperCase() Method - W3Schools

    The toUpperCase() method converts a string to uppercase letters. The toUpperCase() method does not change the original string.

  2. String.prototype.toUpperCase() - JavaScript | MDN - MDN Web Docs

    Mar 13, 2025 · The toUpperCase() method returns the value of the string converted to uppercase. This method does not affect the value of the string itself since JavaScript strings are immutable.

  3. JavaScript String toUpperCase() Method - GeeksforGeeks

    Sep 16, 2024 · JavaScript String toUpperCase() method converts the entire string to Upper case. This method does not affect any of the special characters, digits, and the alphabets that are already in the upper case.

  4. How do I make the first letter of a string uppercase in JavaScript ...

    Jun 22, 2009 · Here is a function called ucfirst()(short for "upper case first letter"): function ucfirst(str) { var firstLetter = str.substr(0, 1); return firstLetter.toUpperCase() + str.substr(1); } You can capitalise a string by calling ucfirst("some string")-- for example, ucfirst("this is a test") - …

  5. JavaScript Uppercase – How to Capitalize a String in JS with …

    Feb 28, 2022 · In this article, I will show you how to convert a string to uppercase letters with the .toUpperCase() string method. To use the .toUpperCase() method, assign the string you want to change to uppercase to a variable and then prepend it with .toUpperCase().

  6. JavaScript toUpperCase () Method

    You'll learn how to use the JavaScript toUpperCase() method to return a string with all the characters converted to uppercase.

  7. How to Transform the Character Case of a String in JavaScript - SitePoint

    Sep 15, 2022 · JavaScript provides native methods to transform the character case of a string, including toUpperCase (), toLowerCase (), and a custom function for title case. These methods return a new string...

  8. Convert String to Upper Case Using JavaScript - Online Tutorials …

    Learn how to convert a string to upper case in JavaScript with easy-to-follow examples and explanations.

  9. JavaScript String toUpperCase() Method – The Complete Guide

    The toUpperCase() method is a built-in JavaScript function that converts all the characters of a string to uppercase. This method returns a new string with all uppercase letters, without modifying the original string.

  10. JavaScript Uppercase – How To Properly Capitalize Strings With ...

    Aug 30, 2024 · By using a regexp to target all lowercase letters, we can selectively uppercase matches while leaving other characters intact. Key takeaway : .toUpperCase() uppercases alphabets. For full casing, use regular expressions.

  11. Some results have been removed
Refresh