10.02.2018 Views

js_tutorial

Create successful ePaper yourself

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

Javascript<br />

string.bold( )<br />

Return Value<br />

Returns the string having tag.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript String bold() Method<br />

<br />

<br />

<br />

var str = new String("Hello world");<br />

alert(str.bold());<br />

<br />

<br />

<br />

Output<br />

Hello world<br />

fixed ()<br />

This method causes a string to be displayed in fixed-pitch font as if it were in a<br />

tag.<br />

Syntax<br />

Its syntax is as follows:<br />

string.fixed( )<br />

Return Value<br />

Returns the string having tag.<br />

Example<br />

167

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

Saved successfully!

Ooh no, something went wrong!