Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Comparing Strings


  • From: wdlists at triche-osborne.com (Triche Osborne)
  • Subject: [Javascript] Comparing Strings
  • Date: Thu Aug 25 11:47:38 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