The default bug view has changed. See this FAQ.

JavaScript 1.5 Reference - String.substring()

RESOLVED FIXED

Status

Documentation
Web Developer
RESOLVED FIXED
14 years ago
12 years ago

People

(Reporter: timeless, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

14 years ago
In Parameters:
< indexB
< An integer between 0 and 1 less than the length of the string.
The second param can be the length of the string ("a".substring(0,1)). It should be:
> indexB
> An integer between 0 and the length of the string.

In Example 3.:
< document.write(str.substring(0,3);
< document.write(str.substring(3,0);
There are too few )s in the document.write lines. It should be:
> document.write(str.substring(0,3));
> document.write(str.substring(3,0));

Comment 1

14 years ago
Reassigning to Bob Clary.
Assignee: rudman → bc

Comment 2

14 years ago
->default
Assignee: bc → rudman

Comment 3

14 years ago
rudman is no longer w/ mozilla.org -> nobody
Assignee: rudman → nobody

Comment 4

12 years ago
fixed
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:String:substring
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.