javascript – What are downsides to opening local html files in the browser?

Let’s say you have a scenario where you want to build a simple web stack (html/css/js) prototype to share with someone.

I am a little unclear on whether or not I want/need to use a small web-server to do so or whether it is appropriate to recommend opening the root html file (lets say index.html) locally in your browser.

In the index.html file, it will reference other local js/css files like so:

    <script src="./test.js"></script>

This seems to work fine for me locally in Chrome, but I am curious if there are any drawbacks/limits to using this approach that aren’t immediately obvious, I was having trouble finding documentation on how this works compared to setting up a local web server.