Simple Function Program In Javascript Using Parameters To Solve