10.02.2018 Views

js_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Javascript<br />

Return Value<br />

Returns a string in lowercase with the current locale.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript String toLocaleLowerCase() Method<br />

<br />

<br />

<br />

var str = "Apples are round, and Apples are Juicy.";<br />

document.write(str.toLocaleLowerCase( ));<br />

<br />

<br />

<br />

Output<br />

apples are round, and apples are juicy.<br />

toLocaleUppereCase ()<br />

This method is used to convert the characters within a string to uppercase while<br />

respecting the current locale. For most languages, it returns the same output as<br />

toUpperCase.<br />

Syntax<br />

Its syntax is as follows:<br />

string.toLocaleUpperCase( )<br />

Return Value<br />

Returns a string in uppercase with the current locale.<br />

158

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!