1. Adverb. (superlative of certainly) ¹
2. Interjection. Used to indicate emphatic agreement. ¹
¹ Source: wiktionary.com