Every person who attempts to commit an offense, but fails to commit or is prevented from committing it, shall be subject to the penalty provided in Section 501.99 if the offense is punishable by confinement in jail.
(W. Va. Code §
61-11-8)