uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
uppercase javascript
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!
toUpperCase()
let dna = " TCG-TAC-gaC-TAC-CGT-CAG-ACT-TAa-CcA-GTC-cAt-AGA-GCT ";
dna = dna.trim().toUpperCase();
console.log(dna);
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us