As nouns the difference between function and advantages
is that
function is what something does or is used for while
advantages is plural of lang=en.
As verbs the difference between function and advantages
is that
function is to have a function while
advantages is third-person singular of advantage.