Modern airplanes are built to act like a Faraday cage, a structure that safely conducts electricity around its exterior without allowing it to penetrate the interior. When lightning strikes, it typically hits a sharp edge like the wingtip or nose, travels along the plane's conductive exterior, and exits through the tail. This design ensures that the electrical current avoids sensitive components and the cabin, keeping passengers and crew safe.