//test sort, slice, indexOf, valueOfspa
var symbols = ["USD/JPY", "CAD/JPY", "USD/EUR", "USD/CNY"];orm
symbols.push("AUD/JPY");it
console.log(symbols);io
symbols.splice(3, 1, "AAA/BBB", "CCC/DDD", "BBB/DDD");console
console.log(symbols);function
alert(symbols.indexOf("USD/EUR"))form
symbols.sort(function(a, b){return a > b});test
console.log(symbols);performance
alert(symbols.indexOf("USD/EUR"))sort
alert(symbols.valueOf());
//test only, avoid such usage for iterate array because of performance issue
for(var el in symbols)
{
if(symbols.hasOwnProperty(el))
{
console.log(el + "\t" + symbols[el] +"\t");//key value pair, key is 0,1,2,3...
}
}