Good eye++. It is the same issue as Perl hashes though. Duplicate Object keys in JS are a mistake and will be clobbered.
<script type="text/javascript"> var p = { "age1":"one", "age1":"two" }; for ( var key in p ) { if ( p.hasOwnProperty(key) ) { document.write(key + " -> " + p[key] + "<br/>"); } } </script> age1 -> two
In reply to Re^5: Find a Position and Insert Text
by Your Mother
in thread Find a Position and Insert Text
by jlb333333
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |