Originally written by the British to mock American soldiers, ‘Yankee Doodle’ became an anthem of freedom during the Revolutionary War and hereafter.