What is the best way to generate traffic to your website?

Hi, I'm new to this industry and want to ask some opinion.
I started an online business 3 months ago and still learning a lot about generating traffics
What is the best and most cost-effective way to create traffic in your opinion/experience?
Look forward to hear from you.