User Defined Array In Javascript Code