Answers for "string to Upper"

49

uppercase string in js

var str = "Hello World!";
var res = str.toUpperCase();  //HELLO WORLD!
Posted by: Guest on July-30-2020
6

capitalize in javascript

const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)
Posted by: Guest on August-13-2020
0

string uppercase

let txt = "Hello World!";
txt = txt.
toUpperCase()
;
Posted by: Guest on October-20-2021
0

string to uppercase

const upperCase = function(names){
    const toLower = names.toLowerCase().split(' ');
    const namesUpper = [];
    for(const wordName of toLower){
        namesUpper.push(wordName[0].toUpperCase() + wordName.slice(1));
    }
    return namesUpper.join(' ');
}
Posted by: Guest on December-31-2020
-1

uppercase in javascript

"foo bar!".toUpperCase();
Posted by: Guest on November-14-2020
2

convert to uppercase

echo example | awk -F 'd' '{ print toupper($1)}'
EXAMPLE		#Example first uppercased outputed
Posted by: Guest on November-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language