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 />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript String toLocaleUpperCase() Method<br />

<br />

<br />

<br />

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

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

<br />

<br />

<br />

Output<br />

APPLES ARE ROUND, AND APPLES ARE JUICY.<br />

toLowerCase ()<br />

This method returns the calling string value converted to lowercase.<br />

Syntax<br />

Its syntax is as follows:<br />

string.toLowerCase( )<br />

Return Value<br />

Returns the calling string value converted to lowercase.<br />

Example<br />

Try the following example.<br />

<br />

159

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

Saved successfully!

Ooh no, something went wrong!