- returns value of the called line converted to upper case.
Example of converting to upper case using toUpperCase
var Str="hello, world!";
return the message with the text "HELLO, WORLD!".
- returns value of the called line converted to lower case.
Example of converting to lower case using toLowerCase
var Str="Hello, WORLD!";
return the message with the text "hello, world!".
It is important to remember that methods toUpperCase and toLowerCase do not modify an initial line, and the line is returned by function.