Alkyl can be prepared from alkyl hallide by treating with alcoholic postash(potassium hydroxide dissolved in ethanol)
This reaction removes a molecule of Hx and therefore, the reaction involved is dehydrohalogenation
In this reaction, the hydrogen atom is eliminated from b carbon atom C next to carbon which halogen is attached.
Therefore, this reaction is called B elimination reaction