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

uppercase

/[A-Z]/  : 'must contain one uppercase'

/([a-z])/  : 'must contain one lowercase'

/(d)/  : 'must contain one number'

/(W)/  : 'must contain one special character'
Comment

UpperCase

public class Test {

   public static void main(String args[]) {
      System.out.println(Character.isUpperCase('c'));
      System.out.println(Character.isUpperCase('C'));
      System.out.println(Character.isUpperCase('
'));
      System.out.println(Character.isUpperCase('	'));
   }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript join array 
Javascript :: do and tap operator rxjs 
Javascript :: ctx.fillstyle 
Javascript :: useNavigate history back 
Javascript :: p5js circle 
Javascript :: how to randomize an array 
Javascript :: js assignment operators 
Javascript :: how to round numbers in javscript 
Javascript :: nodejs bodyparser form data 
Javascript :: javascript click counter 
Javascript :: joi unique validation 
Javascript :: react read multiple files with filereader 
Javascript :: Downward Triangle Star Pattern in JavaScript 
Javascript :: js join 
Javascript :: define an unsigned long int js 
Javascript :: javascript button onclick reload page 
Javascript :: js get time 
Javascript :: Find the maximum number in a jagged array of numbers 
Javascript :: CastError: Cast to ObjectId failed for value "undefined" at path "_id" for model 
Javascript :: get file extension nodejs 
Javascript :: how to play background sound js 
Javascript :: javascript check for null variables 
Javascript :: javascript execute function by string name 
Javascript :: javascript iterate over map keys 
Javascript :: javascript round number to 5 decimal places 
Javascript :: normalize in javascript 
Javascript :: remove json javascript 
Javascript :: poll in javascript 
Javascript :: sort in javascript array 
Javascript :: Material-ui add comment icon 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =