The store personnel are clueless as far as technical questions are concerned.
Radio Shack take note, hire technically competent people if your are going to serve the electronics hobby market.
Quotebut it dose not have example code do drive a dc moterWhat code do you need? Set the direction pin HIGH to go one way. Set it LOW to go the other way. Set the speed using analogWrite() with some value between 0 (slowest) and 255 (fastest).
but it dose not have example code do drive a dc moter