Who Invented Morse Code?

Morse code was developed by Samuel F.B. Morse and Alfred Vail in 1836. They developed a electric telegraph which sent pulses in form of Morse code.