where's the undefined coming from?

    Date: 09/12/06 (Javascript Community)    Keywords: no keywords

    Where is the "undefined" in the alert coming from?

    var propval;
    var contactList = [{"name":"foo","locaction":"bar"}];
    
    for (prop in contactList[0]) {
    
    propval += prop + "=" + contactList[0][prop] + "\n";
    
    }alert(propval);
    

    Source: http://community.livejournal.com/javascript/111228.html

« Links&Japanese edited by... || Popup »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home