Just as @fishworshipper (amazing name) said. Your spellcasting ability (intelligence, wisdom, charisma; depending on class) will determine how hard your spells hit and how hard they are to resist.
Example:
You have a wizard with 15 intelligence, which means you'll have a +2 to intelligence.
The D&D handbook explains the spell DC as followed: 8 + proficiency + int mod = 8 + 2 + 2 = 12. (proficiency is usually +2 at the start, and as a spellcaster, you're proficient with casting spells of course).
This means the opponent would have to make a dexterity saving throw (dexterity because it is trying to maintain balance on the greasy surface) against your 12. Meaning, if it rolls 12 or higher, It'll be unaffected by the grease. If it fails, it'll be knocked prone on the ground.
Great spell choice by the way. Grease can be a lot of fun and is a good crowd control spell. Don't forget that you're also susceptible to slipping on that slippery surface.
EDIT: I forgot to mention, if an enemy failes or succeeds against your grease spell; check the combat log (hidden with a tiny button to the bottom right of the screen). Hovering over some of the text might reveal which rolls happened in the background.