Answers for "str.touppercase()"

49

uppercase javascript

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

toUpperCase()

let dna = " TCG-TAC-gaC-TAC-CGT-CAG-ACT-TAa-CcA-GTC-cAt-AGA-GCT    ";
dna = dna.trim().toUpperCase();
console.log(dna);
Posted by: Guest on June-14-2021
0

toUpperCase Examples¶

//The general syntax for this method is:

stringName.toUpperCase();
/*This method returns a copy of stringName with all lowercase letters 
replaced by their uppercase counterparts. It leaves non-alphabetic 
characters unchanged.*/

console.log("LaunchCode".toUpperCase());
console.log("launchcode".toUpperCase());
console.log("LaunchCode's LC101".toUpperCase());

//LAUNCHCODE
//LAUNCHCODE
//LAUNCHCODE'S LC101
Posted by: Guest on June-14-2021

Code answers related to "str.touppercase()"

Code answers related to "Javascript"

Browse Popular Code Answers by Language