These are extensions, which come out of the front of some types of handlebars that lets the rider get into an aerodynamic position. These are used mostly on road bikes.
These are the extensions that connect to the end of a mountain bike's handlebars. They help the rider gain leverage when they are going up hills. They also can be used as a hand rest.