Should my resume be written chronologically or functionally?

Should my resume be written chronologically or functionally?

That depends upon the purpose of your resume. If you want to highlight you skills and expertise then you should make functional resume but if on other hand you want to show your vast work experience then you should make chronological one