ToLocaleUpperCase-2

 

ToLocaleUpperCase javascript function will convert all the string to Upper case.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> var Str1 = "Learn JavaScript at LearnKode"; var Str3 = Str1.toLocaleUpperCase(); var Str4 = "Hi, This is FROM JS".toLocaleUpperCase(); var Str5 = "JAVASCRIPT LOWERCASE".toLocaleUpperCase(); document.write("<b> Str3 is converted to uppercase :</b> " + Str3); document.write("<br \> <b> Str4 : </b> " + Str4); document.write("<br \> <b> Str5 : </b> " + Str5); </script> </body> </html>
Output