Disclosed is a wearable electronic device including a movable connection terminal that is set back from an opening of a body housing when no external device is connected, and moves towards the opening when the external device approaches. The electronic device includes a body; a connection terminal located inside the body and provided to be movable from the inside towards a surface of the body; and a movable part coupled to or integrated with the connection terminal. The movable part may move the connection terminal towards the surface when a magnet of the external device approaches.