mozilla

Compare Revisions

String.prototype.indexOf()

Change Revisions

Revision 62467:

Revision 62467 by evilpie on

Revision 62468:

Revision 62468 by secoif on

Title:
indexOf
indexOf
Slug:
JavaScript/Reference/Global_Objects/String/indexOf
JavaScript/Reference/Global_Objects/String/indexOf
Tags:
"String Methods"
"String Methods"
Content:

Revision 62467
Revision 62468
n21            Method of <a href="/en/JavaScript/Reference/Global_Obn21            Method of <a href="/en/JavaScript/Reference/Global_Ob
>jects/String"><code>String</code></a>>jects/String" title="en/JavaScript/Reference/Global_Objects/Strin
 >g"><code>String</code></a>
n55        <code>searchValue</code>&nbsp;n55        <code>searchValue</code>
n63        <code>fromIndex</code>&nbsp;n63        <code>fromIndex</code>
n75    <pre>n75    <pre class="brush: js">
n87    <pre>n87    <pre class="brush: js">
88"Blue Whale".indexOf("blue")88"Blue Whale".indexOf("blue") // returns -1
n93    <pre>n93    <pre class="brush: js">
n106    <pre>n106    <pre class="brush: js">
t128    <pre>t128    <pre class="brush: js">
129myString="brie, pepper jack, cheddar"129myString = "brie, pepper jack, cheddar"
130myCapString="Brie, Pepper Jack, Cheddar"130myCapString = "Brie, Pepper Jack, Cheddar"

Back to History