faqts : Computers : Programming : Languages : JavaScript : Language Core : Arrays

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 9 people (78%) answered Yes
Recently 7 of 9 people (78%) answered Yes

Entry

How can I convert a concat string (ie. namArr2[4]) so that it is understood as being an array?

Apr 15th, 2002 07:46
Suban Asif, mul mad,


I guess your question is actually about how the string "namArr2[4]" can 
be converted into Array. Well, you just need to call eval function. 
i.e. 
yourArray = eval("namArr2[4]")