This method returns the calling string value converted to uppercase.
Returns a string representing the specified object.
var str = "Apples are round, and Apples are Juicy."; console.log(str.toUpperCase( ));
Its output is as follows −
APPLES ARE ROUND, AND APPLES ARE JUICY.