About 58 results
Open links in new tab
  1. 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[property] or …

  2. El toUpperCase () como se usa - Stack Overflow en español

    Jul 27, 2017 · El toUpperCase(), me gustaría que me digan como se utiliza y que me den ejemplos ya que me es difícil entender su estructura.

  3. 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" → "This is a test" ...

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

    string = string.toUpperCase(); In many languages, strings are immutable, meaning that they can not be modified once created. While this costs in efficiency, it is important for object oriented programming, …

  5. Javascript toUpperCase () method - Stack Overflow

    Feb 21, 2021 · The .toUpperCase() method is a method of string which the uppercase version of given string. It does not modify the existing string. Thus you need to reassign it. See .

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

    Apr 18, 2015 · What's happening is first we convert the array into a string then use the toUpperCase () method of string to make that string all uppercased then split it by using "," so we get a new array …

  7. Как сделать заглавной первую букву в строке?

    Короткий вариант: заменяем в строке первую букву name[0], на неё же заглавную name[0].toUpperCase(). Если строка начинается не обязательно буквой (пробел, намбер) то …

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

    Apr 14, 2017 · While I applaud the clever approach, being clever rarely leads to maintainable code, especially when used in place of a built-in method like Character.toUpperCase().

  9. 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 problem that …

  10. 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?