Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

string uppercase


let txt = "Hello World!";
txt = txt.toUpperCase();
Comment

convert string to uppercase

function changeToUpperCase(founder) {
  return founder.toUpperCase();
}

// calling the function 
const result = changeToUpperCase("Quincy Larson");

// printing the result to the console
console.log(result);

// Output: QUINCY LARSON
Comment

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(' ');
}
Comment

string toUpper

string a = "String";
string b = a.Replace("i", "o"); // Strong
       b = a.Insert(0, "My ");  // My String
       b = a.Remove(0, 3);      // ing
       b = a.Substring(0, 3);   // Str
       b = a.ToUpper();         // STRING
int    i = a.Length;            // 6
Comment

convert to uppercase

echo example | awk -F 'd' '{ print toupper($1)}'
EXAMPLE		#Example first uppercased outputed
Comment

PREVIOUS NEXT
Code Example
Javascript :: expression vs statement javascript 
Javascript :: remove whitespaces in javascript 
Javascript :: function declaration and function definition in javascript 
Javascript :: useeffect hook 
Javascript :: print an object in javascript 
Javascript :: change array index position in javascript by up and down click 
Javascript :: Simple interest in javascript 
Javascript :: javascript select option based on text 
Javascript :: tinymce return text and html 
Javascript :: how to send js array from ajax 
Javascript :: jquey datatables 
Javascript :: salvar no localStorage react 
Javascript :: javascript object type 
Javascript :: accordion reatjs 
Javascript :: mysql json 
Javascript :: js output to console 
Javascript :: js push array 
Javascript :: join more then one array javascript 
Javascript :: replacing a value in string using aregular expression pyhton 
Javascript :: how to push mutual array elements in an array nested loop javascript 
Javascript :: javascript arreglos 
Javascript :: javascript wait for function to finish 
Javascript :: copy object with new property in js 
Javascript :: start animation with javascript 
Javascript :: javascript update multiple values of an object 
Javascript :: context api 
Javascript :: how to cast in javascript 
Javascript :: alert javascript react native 
Javascript :: javascript array methods 
Javascript :: reactjs get one document from firestore 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =