Re : ABECEDA

From: petr.novak@vitana.cz
Date: 09. 04. 2003, 09:40 CEST

  • Next message: Simona: "Re: cena_soutez"
                Zdar,
    
          kdysi jsem podobny problem resil prave tady v konferenci...
          Funkce umi radit slova, cisla, i obsah poli.
    
    
    function test(x,y)
    {
    return x-y;
    }
    
       var a,b,k,l;                       //deklarace promennych.
       a = new Array("X" ,"y" ,"d", "Z", "v","m","r","T","P");
       b=new Array(54,132,11,128,15,2,36,95)
       c=new Array;
       c[0]=16;c[1]=13;c[2]=5;
       k=a.sort();
       l = b.sort(test);                   //POZOR, zde je potřeba se na fci
    ODKÁZAT, nikoli ji VOLAT!!!
       m=c.sort(test);            //POZOR, zde je potřeba se na fci ODKÁZAT,
    nikoli ji VOLAT!!!
       document.write(k+"<br>");
       document.write(l+"<br>");
       document.write(m);
    
    
                                                                      Terr
    
    
    
    
    **********************************************************************
    This email and any files transmitted with it are confidential and
    intended solely for the use of the individual or entity to whom they
    are addressed. If you have received this email in error please notify
    the system manager.
    
    This footnote also confirms that this email message has been swept by
    MIMEsweeper for the presence of computer viruses.
    
    www.mimesweeper.com
    **********************************************************************
    

  • Next message: Simona: "Re: cena_soutez"

    This archive was generated by hypermail 2.1.6 : 09. 04. 2003, 09:41 CEST