shooting js

i need to know what is the best way of getting my player to shoot.
i know of raycast and instantiaemteing an object but i do not know how to do them so any links to tutorials would be nice. i prefer written tutorials but videos will be fine.

Angry Bots is the best example in Unity itself
and here is the link will be helpful