A lot of people in the middle of the Bell Curve on this one
Early Modern Period (~1600 AD)
(thelemmy.club)
You could easily carry more arrows than javelins and even early bows had an accuracy advantage at range. Bows replaced slings, which were very effective but bows left sticks stuck through people when they didn't kill and disabling some is as good as killing them on a battlefield.
It wasn't all upsides since bows are more likely to be affected by moisture.