Various embodiments of the present invention relate to an electronic device. The electronic device includes a front case including a first battery slot; a battery detachable from the first battery slot; and a first protrusion part which has a preset height and protrudes from a side of the first battery slot to the sidewall of the first battery slot. Besides, other embodiments in a specification can be realized.