You will need to host the code on publicly viewable site. If you put your code on GitHub, then you can read about Github Pages or Netlify for hosting code stored in a GitHub repository. Did you use React, jQuery, or vanilla JavaScript?
No, like I said, you will then need to use a free service like Github Pages or Netlify to actually serve the built site. Below are a few articles to get you started.