Static And Dynamic Array In Javascript Example Code