Re : Chybne pracujici js?

From: petr.novak@vitana.cz
Date: 12. 11. 2003, 14:14 CET


Vsechno spatne, tak jeste jednou...

      nedokazu si momentalne vysvetlit proc nasledujici skript :

var pole=new Array(5);
alert(pole.length);

vraci hodnotu 5 (slovy pet).

      A dalsi skript :

pole=new Array(5, 3);
alert(pole.length);

vraci spravne 2 (slovy dve);

Proc ta prvni varianta vraci, dle meho nazoru, nesmysl?

Terr




*****************************************************************************
This document should only be read by those persons to whom it is addressed
and is not intended to be relied upon by any persons without subsequent
written confirmation of its contents. Accordingly, Rieber & Son
disclaim all responsibility and accept no liability (including in negligence)
for the consequences for any person acting, or refraining from acting, on
such information prior to the receipt by those persons of subsequent
written confirmation.

If you have recieved this E-mail message in error, please notify us
immediately by telephone. Please also destroy and delete the message from
your computer.

Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this E-mail message is strictly 
prohibited.

Rieber & Son ASA
postmaster@rieberson.no
Bergen, Norway

*****************************************************************************



This archive was generated by hypermail 2.1.3 : 12. 11. 2003, 14:14 CET