In the nucleophilic substitution reaction in alkyl halides (R-X) , the nucleophile replaces:
Halide ion
Carbocation
Carbanion
Carbon atom of the C-X bond