About 8,240,000 results
Open links in new tab
  1. How do I make the first letter of a string uppercase in JavaScript ...

    Jun 22, 2009 · How do I make the first character of a string uppercase if it's a letter, but not change the case of any of the other letters? For example: "this is a test" → …

  2. How and why does 'a' ['toUpperCase'] () in JavaScript work?

    Jun 1, 2013 · The reason it works like 'a' ['toUpperCase'] () is that the toUpperCase function is a property of the string object 'a'. You can reference the properties on an object using object …

  3. toUpperCase () is not making the string upper case

    toUpperCase returns the new string, so you must write: string = string.toUpperCase(); In many languages, strings are immutable, meaning that they can not be modified once created. While …

  4. string - toUpperCase in Java does not work - Stack Overflow

    Dec 11, 2011 · I have a string: String c = "IceCream"; If I use toUpperCase() function then it returns the same string, but I want to get "ICECREAM". Where is the problem?

  5. javascript - Convert array into upper case - Stack Overflow

    Apr 18, 2015 · JavaScript does not really support a toUpperCase() function for arrays, as far as I know. You have to create a for or foreach loop to loop through the array and call …

  6. Converting a char to uppercase in Java - Stack Overflow

    Apr 14, 2017 · You can use Character#toUpperCase() for this. char fUpper = Character.toUpperCase(f); char lUpper = Character.toUpperCase(l); It has however some …

  7. javascript - Change Input to Upper Case - Stack Overflow

    Solutions using value.toUpperCase seem to have the problem that typing text into the field resets the cursor position to the end of the text. Solutions using text-transform seem to have the …

  8. javascript - .toUpperCase () is not a function - Stack Overflow

    When name is all uppercase, then the function should shout back to the user. For example, when name is "JERRY" then the function should return the string "HELLO, JERRY!" The console …

  9. why i get [native code] when use my function - Stack Overflow

    Dec 20, 2018 · You're not actually calling toLowerCase or toUpperCase in your else conditions. You're referencing them, so you get the default string representation of the functions. …

  10. Reactjs convert input string to upper case - Stack Overflow

    May 20, 2020 · I'm creating an app in Reactjs using react-strap. I would like to convert an input field to upper case. From googling, it looks like simply appending "toUpperCase()" to the field …