How To Get Input Value In Javascript Using Arrays