10.07.2017 Views

javascript_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Javascript<br />

<br />

<br />

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

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

<br />

<br />

<br />

Output<br />

Apples are round, and Apples are Juicy.<br />

toUpperCase ()<br />

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

Syntax<br />

Its syntax is as follows:<br />

string.toUpperCase( )<br />

Return Value<br />

Returns a string representing the specified object.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript String toUpperCase() Method<br />

<br />

<br />

161

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

Saved successfully!

Ooh no, something went wrong!