15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

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

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

480<br />

<strong>JavaScript</strong> <strong>Examples</strong> <strong>Bible</strong>: The Essential Companion to <strong>JavaScript</strong> <strong>Bible</strong><br />

stringObject.split()<br />

Listing 34-5 (continued)<br />

,<br />

<br />

(None)<br />

5<br />

10<br />

-1<br />

-5<br />

-10<br />

&nbsp;) <br />

<br />

<br />

<br />

<br />

<br />

<br />

Figure 16-3: Lab for exploring the string.slice( ) method<br />

string.split(“delimiterCharacter” [,<br />

limitInteger])<br />

NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5<br />

Compatibility ✓ ✓ ✓ ✓ ✓ ✓<br />

Example<br />

Use The Evaluator (Chapter 13 in the <strong>JavaScript</strong> <strong>Bible</strong>) to see how the<br />

string.split() method works. Begin by assigning a comma-delimited string to a<br />

variable:

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

Saved successfully!

Ooh no, something went wrong!