You're completely ignoring ability modifiers. The cantrip will be using Wisdom, Intelligence, or Charisma, which a fighter-type is unlikely to raise beyond 14 or so; and the bonus applies only to the attack roll. The bow or javelin will be using the the character's primary stat, and will apply it both to attack and damage.It's either 4 short ranged attacks equivalent to a heavy crossbow (eldritch blast), useful in many situations when you don't have another ranged weapon handy or the time to switch between them; or a 4d10 set on fire attack better than a javelin attack...
At level 20*, a Dex fighter with a longbow has +13 to hit and deals 4d8+20 damage (four attacks for 1d8+5 each), averaging 38.
A Str fighter with a javelin has +11 to hit and deals 4d6+20 damage (four attacks for 1d6+5 each), averaging 34.
A fighter with a cantrip and a 14 in the casting stat has +8 to hit and deals 4d10 damage, averaging 22.
[size=-2]*Not that what happens at level 20 actually makes the slightest difference at 99% of gaming tables, but it's good to illustrate the point.[/size]
Last edited: