[Javascript] Comparing Strings

Triche Osborne wdlists at triche-osborne.com
Thu Aug 25 12:06:19 CDT 2005


Triche Osborne wrote:
> 
> var replacements = new Array();
> replacements[0] = ("Hi there!/span");
> replacements[1] = ("Bonjour!/"p","span"/"error");
> 
Nice. That last should have been:
replacements[1] = ("Bonjour!/p,span/error");

Sorry. I've been a bit distracted by a pet emergency for a couple of 
days. But since you're a seasoned programmer (even if not JS), I expect 
you get my drift about use of the array despite the quote error.

Triche




More information about the Javascript mailing list