An electrocardiogram (ECG or EKG) is a test to record the electrical signals in the heart. It shows how the heart is beating.
Sticky patches called electrodes are placed on the chest and sometimes on the arms or legs. Today's standard is 12-lead ECG devices.