To darn is defined as to fix a hole in cloth by weaving a patch across the hole.(verb)
When you use thread to weave a patch a hole in a sock, this is an example of a time when you darn the sock.
Darn is defined as a way to show disappointment or dismay, as a more proper version of the word "damn."(interjection)
When you slam your finger with a hammer but you do not want to shout a swear word, this is an example of a time when you would shout "darn!"
See darn in Webster's New World College Dictionary
transitive verb, intransitive verb
Origin: < MFr dial. darner, to piece together, mend < Bret darn, a piece < IE base *der-, to pull off, split apart > tear
transitive verb, intransitive verb, noun, adjective, adverb, interjection
See darn in American Heritage Dictionary 4
verb darned darned, darn·ing, darns verb, transitive
Origin: French dialectal darner
Origin: , perhaps from Norman French darne, piece
Origin: , from Breton darn.
Origin: Alteration of damn.
Learn more about darn