The definition of certainly is absolutely or definitely.(adverb)
An example of certainly used as an adverb is in the sentence, "We will certainly buy some cookies," which means "We will absolutely buy some cookies."
See certainly in Webster's New World College Dictionary
See certainly in American Heritage Dictionary 4
Learn more about certainly