Subfolders>Subdomains
There’s no doubt about it:
When it comes to search engine optimization, subfolders (backlinko.com/example) CRUSH subdomains (example.backlinko.com).
Sure, Google stated that they don’t have an inherent preference for one or the other.
But I’ve seen rankings shoot up with a switch to a subfolder. So my eyes, experience and gut tells me that subfolders are ideal for SEO.