Posted
about 13 years
ago
by
kfan
1311313
|
Posted
about 13 years
ago
by
Gazo games
JavaScript is very important in making situation it helps programmers create web pages to help users easily share .. thank you ...!
|
Posted
about 13 years
ago
by
ivanovasor
|
Posted
about 13 years
ago
by
Demosthenes Koptsis
This code overwrite keys with the same index. Does not preserve these values. Value 5 has key 0 same with value 10. The result is the value 10 overwrites 5.
|
Posted
about 13 years
ago
by
Vishwa
Thanks.
Works like a charm.
|
Posted
about 13 years
ago
by
Demosthenes Koptsis
There is a bug i think.
arr1 = {'color': {'favourite': 'read'}, 0: 5};
arr2 = {0: 10, 'color': {'favorite': 'green', 0: 'blue'}};
Result = {0=10, 'color':{'favourite': 'read', 'favorite':'green', 0='blue'}}
value: 5 is lost!
|
Posted
about 13 years
ago
by
mashafdSaf
|
Posted
about 13 years
ago
by
Abro - Lucido Media GbR
Please consider using indexOf() [ see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf ] if available.
|
Posted
about 13 years
ago
by
mashafdSaf
|
Posted
about 13 years
ago
by
ludkaBiob
|