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