Studies show that the use of subdomains can confuse Googlebots' crawling behavior. Therefore, you can get much better results if you use subfolders instead of using subdomains. Because when you use a subfolder, it is much easier for Google to understand that the file in question belongs to your site. This means that you also contribute to your site's authority score.