What kind of electronic device is this?
That would be an inductor with a resistor style color code.

Here's a picture from that Wikipedia page showing some similar 100 µH axial lead inductors:


Vahid alpha at English Wikipedia CC BY 3.0, via Wikimedia Commons