During a reaction, the –OH group of an alcohol is replaced by a chlorine atom. Which type of reaction occurred?
addition
condensation
elimination
substitution