an electronic device includes a first body having a first connector and a second body . a hinge located in the electronic device comprises a first hinge piece fastened to the first body , a second hinge piece fastened to the second body and pivotally coupled to the first hinge piece , and a second connector fastened to the fastened to the hinge piece and electrically connecting to the second body and the first connector individually .